As a general FYI, Dart's Native Assets are looking more solidified recently and would likely simplify your end-users' builds by quite a margin. With Native Assets, a build script written in Dart can automatically build a user's Rust project and then handle all the wiring into the resultant Dart/Flutter project, so you can just access FFI functions directly (without needing stuff like DynamicLibrary--with native assets, FFI functions are just regular Dart functions that you invoke normally).
I also just wrote native_toolchain_rs, which would probably be useful for you, if you choose to migrate to native assets once it's stable. Just creating this issue to open a floor for discussion in case you were interested in this!
As a general FYI, Dart's Native Assets are looking more solidified recently and would likely simplify your end-users' builds by quite a margin. With Native Assets, a build script written in Dart can automatically build a user's Rust project and then handle all the wiring into the resultant Dart/Flutter project, so you can just access FFI functions directly (without needing stuff like
DynamicLibrary--with native assets, FFI functions are just regular Dart functions that you invoke normally).I also just wrote
native_toolchain_rs, which would probably be useful for you, if you choose to migrate to native assets once it's stable. Just creating this issue to open a floor for discussion in case you were interested in this!