uniffi-rs icon indicating copy to clipboard operation
uniffi-rs copied to clipboard

a multi-language bindings generator for rust

Results 351 uniffi-rs issues
Sort by recently updated
recently updated
newest added

This PR introduces the concept of Delegate objects, for decorating method calls into Rust. We add three annotations: 1. `[Delegate]`, to mark an `interface` as a Delegate object. 2. `[Delegate=]`,...

The `type_ffi` filter on swift is a bit confusing and should be refactored. It currently outputs the type that we want to use in the header file (e.g. `int32_t`). This...

We use a different naming scheme for flat enum variants vs variants of enums with fields. For flat enums, the variants use `SHOUTY_SNAKE_CASE`. For enums with fields, the variants use...

#1087 added a `CodeType` impl for the component interface structs and used it to simplify the Kotlin templates. Let's try to apply the same thing to Swift and Python (once...

In a UDL file I had `Guid get_guid(optional Guid? val);` - Python worked fine, but Kotlin gave me an obscure error - it generated: `fun ext_types_guid_ed42_get_guid(val: RustBuffer.ByValue, ...` and gave...

Currently, enum/error with fields require the variant to use named fields. Take the example from the book: Rust: ``` enum IpAddr { V4 {q1: u8, q2: u8, q3: u8, q4:...

For #460, we added support for throwing errors with field data. However, now that I'm trying to use those errors, I realize they are missing an important feature from field-less...

In the logins component, we currently have code like [this](https://github.com/mozilla/application-services/blob/1dab6d76e9163a5bb8d6b17859cdf4f88458ea96/components/logins/src/error.rs#L16-L18) and [this](https://github.com/mozilla/application-services/blob/1dab6d76e9163a5bb8d6b17859cdf4f88458ea96/components/logins/src/error.rs#L83-L98). We create one error Enum, then wrap that as a variant of a top-level error Enum. I think...

From application-services build-xcframework.sh: https://github.com/mozilla/application-services/blob/e1abe5ad61983f00a8abf1b477afa5470876e484/megazords/ios-rust/build-xcframework.sh#L136-L139 Excerpt: ``` # TODO: it would be neat if there was a single UniFFI command that would spit out # all of the generated headers for...

It seems that, uniffi-rs does not to support static method/associated function yet. ┆Issue is synchronized with this [Jira Task](https://mozilla-hub.atlassian.net/browse/UNIFFI-100) ┆Issue Number: UNIFFI-100