fzyzcjy / flutter_rust_bridge

Flutter/Dart <-> Rust binding generator, feature-rich, but seamless and simple.

Home Page:https://fzyzcjy.github.io/flutter_rust_bridge/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Crate name change

popzones opened this issue · comments

Do we have a possibility to provide a CLI to support modifying the name of the lib crate and synchronously modify the names of the linked libraries in the CMake files? Because simply changing the crate name from Cargo will not compile. Thank you!

Hi! Thanks for opening your first issue here! 😄

Hi, currently this is not implemented, but feel free to PR for it! (I may not personally have time to do this, since this may not be super frequently used)

A workaround maybe, global search your crate name in the folder and rename everything.

Another workaround maybe, flutterr_rust_bridge_codegen create a brand new project with the new name, and then copy-paste your old code into the new folders.

Hi! Thank you for your reply.

Yes. Both of your solutions are working. I have tried these two ways. We only need to modify the files under the rust_builder directory.

When I was familiar this project enough, I will try to create PR for it. Thank you.

You are welcome!