uniffi-rs
uniffi-rs copied to clipboard
a multi-language bindings generator for rust
I'm not sure it's by design or a bug, but you can return `uniffi:Enum` as an error in uniffi functions. See the `throw_an_enum` function below. When such a function is...
Executing `UNIFFI_TEST_SWIFT_VERSION=6 cargo test -p uniffi-fixture-futures` will fail with various Sendable conformance issues.
Edit: This was caused by a stackoverflow. Original message: I was surprised by this one, but I don't know where to start. Using uniffi 0.29.1. My downstream code throws a...
Update https://mozilla.github.io/uniffi-rs/next/internals/async.html and add some discussion on cancelling futures/async functions.
``` pub struct Record { bool: bool, // sad mypy } ``` `cargo test -p uniffi-fixture-keywords-rust` works, but: ``` % mypy target/tmp/uniffi_keywords_rust-xxx/keywords_rust.py .../keywords_rust.py:1161: error: Variable "keywords_rust.RecordWithTypeNames.bool" is not valid as...
Right now, interface and trait interface handles use raw pointers as their FFI type (`*mut ::std::ffi::c_void`). This makes sense since they're implemented using `Arc::into_raw`. This doesn't work great for trait...
When trait interfaces that have the `with_foreign` attribute are passed across the FFI, we always create a new wrapper layer. For example: - The trait interface is Rust is implemented...
Currently, uniffi supports generating bindings documentation using Rust doc comments. However, these comments cannot be conditionally included based on the target language (e.g. writing example in comments could be confusing...
Recently I was working on adding support for sending [`Uuid`] across the FFI boundary as a `String`. Originally, I had introduced this conversion using a bare ```rust use uuid::Uuid; uniffi::custom_type!(Uuid,...
This would allow to use the comparison operators on objects.