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
trafficstars

Hi, trying to set the default values for some field in an enum, I noticed that it's not currently possible. Would be awesome to have the support for it. Example:...

Via #2543, our docs for literals in proc-macros aren't great - "String, integer, float, and boolean literals". Also, via UDL, numeric literals carry a radix etc - so we've always...

I'm trying to define a custom type for a type in my crate ```rust uniffi::custom_type!(crate::Environment, Arc); ``` However, compiler complain that ``` rustc: Custom types must only have one component...

Currently, given this rust code ```rs #[uniffi::export] pub trait MyTrait {} #[uniffi::export] pub struct MyStruct; #[uniffi::export] impl MyTrait for MyStruct { fn my_method(&self) { todo!() } } #[uniffi::export] pub fn...

Using [`library_mode::generate_bindings`](https://docs.rs/uniffi_bindgen/latest/uniffi_bindgen/library_mode/fn.generate_bindings.html) now requires a `&dyn BindgenCrateConfigSupplier`, but there is very little documentation about it, and no info in the changelog on how to migrate.

Hi there! I'm working on an SDK that uses UniFFI (version 0.28.0) to export its code to Android and iOS. In this SDK, I have a large enum that lists...

**UnsatisfiedLinkError: cannot locate symbol "SSL_do_handshake" in librustcore.so on Android** **This probably has to do with: reqwest crate and its dependencies** **Issue Description** The application crashes on just calling any Rust...

Eg, a simple enum: https://github.com/mozilla/uniffi-rs/blob/4cbb8f10a1e8171d0b36114f126cb0abeea0f59a/fixtures/ext-types/lib/src/ext-types-lib.udl#L71-L75 If we had an enum with fields, we'd need an `[Enum, Remote] interface {... }`, but that would fail - https://github.com/mozilla/uniffi-rs/blob/aa200a689aa2fca77f8d4b73051c98cdeaecce3c/uniffi_udl/src/attributes.rs#L458 via #2334

get involved

Right now we have docs [for Swift](https://mozilla.github.io/uniffi-rs/swift/configuration.html?highlight=uniffi.tom#configuration), some [for custom types](https://mozilla.github.io/uniffi-rs/udl/custom_types.html?highlight=uniffi.tom#custom-types-in-the-bindings-code) and some [for external types](https://mozilla.github.io/uniffi-rs/udl/ext_types_external.html?highlight=uniffi.tom#kotlin). But no single place that calls out what `uniffi.toml` is and what it can...

I am trying to utilize the Into trait in my function, however I encounter an error like this (the `new` function mentioned here is an `#[uniffi::constructor]`: ``` error[E0562]: `impl Trait`...