If I were to make a library with flutter_rust_bridge
to put on pub.dev, does the person downloading also need to set up flutter_rust_bridge
?
#1057
-
I'm curious because I want to create an SDK as a library that uses |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
No! flutter_rust_bridge does nothing but generating a bunch of code that otherwise you as the programmer has to write by hand (e.g. bridge_generated.rs). Thus users do not need to do that. If you want your users to download a precompiled .so file and use it, then they do not need to setup Rust toolchain. But if you want them to compile your Rust code from source, then they need to setup rust, which is indeed unrelated to flutter_rust_bridge, but yes that can be tedious. This recently added doc my be related: https://cjycode.com/flutter_rust_bridge/library.html Various packages using flutter_rust_bridge may also be helpful: e.g. https://github.com/Desdaemon/polars_dart. I remember there are a few more so maybe search a bit |
Beta Was this translation helpful? Give feedback.
No! flutter_rust_bridge does nothing but generating a bunch of code that otherwise you as the programmer has to write by hand (e.g. bridge_generated.rs). Thus users do not need to do that.
If you want your users to download a precompiled .so file and use it, then they do not need to setup Rust toolchain. But if you want them to compile your Rust code from source, then they need to setup rust, which is indeed unrelated to flutter_rust_bridge, but yes that can be tedious.
This recently added doc my be related: https://cjycode.com/flutter_rust_bridge/library.html
Various packages using flutter_rust_bridge may also be helpful: e.g. https://github.com/Desdaemon/polars_dart. I remember there ar…