uniffi-rs
Our great sponsors
rust-android-gradle | uniffi-rs | |
---|---|---|
6 | 26 | |
994 | 2,293 | |
2.5% | 5.0% | |
0.0 | 9.5 | |
15 days ago | 1 day ago | |
Kotlin | Rust | |
Apache License 2.0 | Mozilla Public License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
rust-android-gradle
-
Rust with FTC
I thought for a second you meant physical rust... Anyway, rust doesn't have any benefits in FTC. If you really needed to use it you could try to use this but you still won't have any way of using the FTC SDK as it was built for java(at least without porting it to rust which will be a ton of work).
-
Cross-platform (Android, iOS) rust library
Is there any easy way to do this? I've seen this plugin as well, but it looks pretty much the same
-
Blog Post: Rust Is a Scalable Language
That's significantly better than the C world where each project comes bundled with a bespoke build system that nobody else uses. I'm also not convinced that cargo present a significant barrier to interop. There's a Rust plugin for gradle (https://github.com/mozilla/rust-android-gradle) which bridges between gradle and Cargo. Looks simple enough to me.
-
You Have Mail: Email Notification on Android without Google Play Services
rust-android-gradle to hook cargo into Android Gradle project
-
Rust for mobile development?
This works great for android https://github.com/mozilla/rust-android-gradle
-
Status quo on developing for Android in Rust
The mozilla gradle plugin makes compiling and packaging rust libraries quite painless. The jni-crate can be used on Android as well.
uniffi-rs
-
Opaque Types for UniFFI
On my youtube series "Growing up Rust", I'm building a personal CRM in Rust with a Swift frontend. I'm using CQRS and an event-driven architecture with the least amount of swift as possible. I'm using UniFFI to generate the bindings for swift (and in this example python)
-
Willow Protocol
Not officially. We currently have bindings for rust, python, golang and swift.
These were the most asked for bindings (python for ml, golang for networking and swift for ios apps).
We are using uniffi https://mozilla.github.io/uniffi-rs/
Would you need C or C++ bindings?
- UniFFI: Automatically generate foreign-language bindings for Rust libraries
- Compiling Rust for .NET, using only tea and stubbornness
-
Show HN: Pip Imports in Deno
An alternative is metacall. The example in the readme is about calling Python from Javascript, but it also works with other languages, like Ruby, C#, Java, and other languages
https://github.com/metacall/core
List of supported languages here https://github.com/metacall/core/blob/develop/docs/README.md...
In the future, maybe webidl (or extensions of it) will bring interoperability between languages too. At the moment there is https://mozilla.github.io/uniffi-rs/ for interoperability between Rust and a number of languages (basically the ones mozilla needs: Swift, Kotlin, Javascript)
-
ffizz: Build a Beautiful C API in Rust
The tooling for the first kind -- calling Rust from another language -- is a bit less developed, and tends to rely on code generation that doesn't necessarily produce a natural C API. cbindgen, uniffi, cxx, and Diplomat all take this course.
-
macOS Apps in Rust
Mozilla's uniffi-rs is really good. You write a common IDL and the bindings are generated automatically.
https://github.com/mozilla/uniffi-rs
-
Write SDK “base” in Rust, wrap in other languages?
At Mozilla we built a multi-language bindings generator: https://github.com/mozilla/uniffi-rs/
-
An experiment in the Rust compiler to begin devising a new cross-language ABI that's higher-level than the C ABI, with the goal of safer and easier FFI
Is there a connection with Mozilla UniFFI ?
-
Tauri now supports Android/iOS in the 2.0 branch!
Rust <> Swift/ Kotlin works very well with uniffi-rs by Mozilla: https://github.com/mozilla/uniffi-rs
What are some alternatives?
cargo-mobile - Rust on mobile made easy!
flutter_rust_bridge - Flutter/Dart <-> Rust binding generator, feature-rich, but seamless and simple.
PyO3 - Rust bindings for the Python interpreter
ndk - Rust bindings to the Android NDK
cxx - Safe interop between Rust and C++
yew-pwa-minimal - A minimal Progressive Web App using Yew.
wasmer-go - 🐹🕸️ WebAssembly runtime for Go
rustdesk - An open-source remote desktop, and alternative to TeamViewer.
glommio - Glommio is a thread-per-core crate that makes writing highly parallel asynchronous applications in a thread-per-core architecture easier for rustaceans.
BlueEngine - Blue Engine is a general-purpose and easy-to-use graphics engine written in rust.
buttplug-rs - Rust Implementation of the Buttplug Sex Toy Control Protocol