
Security News
GitHub to Block pull_request_target Workflows by Default Starting December 2
GitHub is tightening GitHub Actions security with new restrictions on privileged pull request workflows. Here's what changes and how maintainers are affected.
uniffi_core
Advanced tools
UniFFI is a toolkit for building cross-platform software components in Rust.
For the impatient, see the UniFFI user guide or the UniFFI examples.
By writing your core business logic in Rust and describing its interface in an "object model", you can use UniFFI to help you:
You can describe your object model in an interface definition file or by using proc-macros.
UniFFI is currently used extensively by Mozilla in Firefox mobile and desktop browsers; written once in Rust, auto-generated bindings allow that functionality to be called from both Kotlin (for Android apps) and Swift (for iOS apps). It also has a growing community of users shipping various cool things to many users.
UniFFI comes with support for Kotlin, Swift, Python and Ruby with 3rd party bindings available for C# and Golang. Additional foreign language bindings can be developed externally and we welcome contributions to list them here. See Third-party foreign language bindings.
You can read more about using the tool in the UniFFI user guide.
We consider it ready for production use, but UniFFI is a long way from a 1.0 release with lots of internal work still going on. We try hard to avoid breaking simple consumers, but more advanced things might break as you upgrade over time.
ˈjuːnɪfaɪ. Pronounced to rhyme with "unify".
A portmanteau word that also puns with "unify", to signify the joining of one codebase accessed from many languages.
uni - [Latin ūni-, from ūnus, one] FFI - [Abbreviation, Foreign Function Interface]
Other tools we know of which try and solve a similarly shaped problem are:
(Please open a PR if you think other tools should be listed!)
wasm-bindgen bindings crate.There are a few third-party resources that make it easier to work with UniFFI:
.udl files for the IDEA platform (uniffi-dl in the JetBrains marketplace). It provides syntax highlighting, code folding, code completion, reference resolution and navigation (among others features) for the UniFFI Definition Language (UDL).cargo-ndk, which generally makes Android library builds less painful.uniffi-starter is a minimal project demonstrates a wide range of UniFFI in a complete project in a compact manner. It includes a full Android library build process, an XCFramework generation script, and example Swift package structure.(Please open a PR if you think other resources should be listed!)
If this tool sounds interesting to you, please help us develop it! You can:
This project is governed by Mozilla's Community Participation Guidelines.
FAQs
Unknown package
The cargo package uniffi_core receives a total of 653,118 weekly downloads. As such, uniffi_core popularity was classified as popular.
We found that uniffi_core demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.

Security News
GitHub is tightening GitHub Actions security with new restrictions on privileged pull request workflows. Here's what changes and how maintainers are affected.

Security News
/Application Security
A practical guide to securing GitHub Actions against supply chain attacks, covering malicious pull requests, credential theft, dependency risks, and release pipelines.

Security News
Composer 2.11 adds dependency cooldowns, joining package managers that delay new releases to reduce supply chain risks while allowing urgent security updates.