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

(@bendk [asked me to create an issue](https://github.com/mozilla/uniffi-rs/pull/2087#issuecomment-2166132975) ) Following up on [my comment in 2087](https://github.com/mozilla/uniffi-rs/pull/2087#issuecomment-2128711332), using UniFFI with a Workspace works well in the **land of Rust** - especially with...

binding-swift

I have the following trait ```rust use crate::impl_default_for; #[uniffi::export(with_foreign)] pub trait AutoComplete: Send + Sync + std::fmt::Debug + 'static { fn autocomplete(&self, word: String) -> Vec; } #[derive(Debug, Copy, Clone,...

This removes the use of `cargo` in `library_mode`, in order to support systems that do not have `cargo` available. It also removes the requirement that the project for which bindings...

The panic condition seems to be a mismatch between the foregin code and the size of `usize` on the platform.

The `clone_handle` and `consume_handle` methods in the `HandleAlloc` trait should be unsafe: https://github.com/mozilla/uniffi-rs/blob/cd38ccea8236df7d93aff336c325a3a8e524af5d/uniffi_core/src/ffi_converter_traits.rs#L629-L637 The problem is that you can create a `Handle` with any `u64` value you want in safe...

Lately, we've been discussing the idea of UniFFI 1.0 and what it would entail. As part of this effort, we should think about how we could improve on our current...

FFI-1.0

Currently these types are always serialized into a `RustBuffer` which has been long believed to be inefficient ([Issue 244](#244), [ADR-002](https://github.com/mozilla/uniffi-rs/blob/690fd55964122392ab7925f8f16f1a505ffdc110/docs/adr/0002-serialize-complex-datatypes.md)). We should explore passing these as `repr(C)` structs and tagged...

FFI-1.0

The `ffi-buffer` feature is an experiment to try to simply bindings generation for languages where we don't have access to ctypes or a similar libffi-based library and where we can't...

FFI-1.0

We should adjust how we pack values into RustBuffers. - Align items, rather than always packing them together. I think the C struct packing algorithm should work well. In addition...

FFI-1.0

We currently serialize many argument types to a `RustBuffer`. For each argument a separate buffer is allocated, which is wasteful. It would be better to pack all arguments into a...

FFI-1.0