Skip to content

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

Answered by fzyzcjy
satvikpendem asked this question in Q&A
Discussion options

You must be logged in to vote

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…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@satvikpendem
Comment options

@fzyzcjy
Comment options

Answer selected by satvikpendem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants