bendk
bendk
My main motivation for pushing this one out is to use it as a discussion starter to ask some questions. Q1: Are there requirements for the log record formatting? When...
> The JSON logs are consumed by several processes, so those should have a structured form. The current logging uses [MozLog Services format](https://wiki.mozilla.org/Firefox/Services/Logging) which is a bit crufty, but explains...
Pushed out a second pass at this one. This time I handled the `serde` / `tracing` integration directly to get more control over the final formatting. I think the logs...
We implement `Lift`, `Lower`, and `ConvertError` for error types: https://github.com/mozilla/uniffi-rs/blob/42362c8fdd7eadb4f94da7945f22923f7dc5059a/uniffi_macros/src/error.rs#L89-L91 I think this means that using `Enumeration` as an argument should work, but returning it doesn't. It should be easy...
One use-case here is nested types. Suppose you wanted export a function that used the `Line` type from the `geometry` example crate. In that case, you also would want to...
Some ideas for extensions: - [Generating mocks](https://github.com/mozilla/uniffi-rs/pull/1918) - Generating adapter classes, for example wrapping an interface with sync methods to present an async interface.
Great question. I think "avoid the need to have hand-written wrappers around uniffi components" is a great first draft at a goal. Maybe there are some hand-written wrappers that should...
I'll state my preference up-front: I think we should be using handles. I don't like `1` because it's too hard to debug errors. Whenever I want to add new functionality...
I think the changes in #1823 and #1826 are good regardless of this decision, so the ADR doesn't mention them. Please speak up if you think some of those should...
Just pushed some small changes to the text and added a document that tries to describe how the handlemaps would work in detail: https://github.com/mozilla/uniffi-rs/blob/6307aa0561312472557c8770da1042a7d74a24ad/docs/handles.md