commit | 04ad7de3a2d3d5bc8848416683f214dd165a0439 | [log] [tgz] |
---|---|---|
author | Adam Wright <adamdwright@google.com> | Tue May 07 09:32:20 2024 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Tue May 07 09:32:32 2024 +0000 |
tree | 24ed579c417f213d9a8e49c93e4980c0d8a13e21 | |
parent | 17844644b496d41d717d7286efe73683b61c624f [diff] |
Revert "Upgrade uniffi_core to 0.27.1" Revert submission 3076224-uniffi Reason for revert: Droidmonitor break b/339155709 Reverted changes: /q/submissionid:3076224-uniffi Change-Id: Id2f8178a2ab1cea0fcce6af0f9b569633e27be1f
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 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.
UniFII 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!)
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).(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.