This crate implements a low-level support library to simplify implementing certain FFI patterns. It was originally created for patterns in the mozilla/application-services repository, but that repo is working on replacing all uses of this crate with the mozilla/uniffi-rs project.
In other words, we consider this crate soft-deprecated and replaced by UniFFI.
However, if this crate proves useful to others, it can assist with the following areas:
Additionally, it's documentation describes a number of the problems we've hit doing this to expose libraries to consumers on mobile platforms.
Add the following to your Cargo.toml
ffi-support = "0.4.4"
For further examples, the examples in the docs is the best starting point, followed by the usage code in the mozilla/application-services repo (for example here or here).
Dual licensed under the Apache License, Version 2.0