Our great sponsors
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
-
diplomat
Experimental Rust tool for generating FFI definitions allowing many other languages to call Rust code
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
It is already on GitHub now https://github.com/fzyzcjy/flutter_rust_bridge and will be published maybe in a day ;)
My suggestion is to use dart and dart-sys crate names for less opinionated interop (dart-sys being unsafe raw FFI, and dart being a safe wrapper plus higher level things). An aspiration would be for it to be as complete as the pyo3 Python bindings.
Oh. So it's like cbindgen, but for Dart
I have a Flutter app. Just a normal one, you can follow flutter.dev to create one. Then I have some normal Rust code. Also very normal, like you do in rust official website.
I'm not that interested in a separate tool for this but it would be really cool to have a dart plugin as a part of Diplomat. Diplomat's not fully polished yet but it's totally okay to add new language backends to it. (Eventually I plan to restructure it so that it has a cleaner plugin interface, but for now "checked into tree" is fine for backends)