Closed dbsxdbsx closed 1 year ago
Inputting flutter_rust_bridge_codegen --version in cmd, it does output the older version. But why finally frb would do the generation with the newer version?
This sounds like you may have multiple copies of the codegen installed. How about removing all instances of flutter_rust_bridge_codegen
in .cargo/bin
and try installing again?
Thanks your answer, after reinstallation, it did solve my issue. But still, after compilation (I've done just clean
before), cargo. lock
and pubspec.lock
would still automatically generate with frb of the latest version (v1.49.1). Do you know where does the information come from?
cargo.lock and pubspec.lock would still automatically generate with frb of the latest version
You will need to pin the exact version of the dependency in Cargo.toml and pubspec.yaml to get the correct one.
cargo.lock and pubspec.lock would still automatically generate with frb of the latest version
You will need to pin the exact version of the dependency in Cargo.toml and pubspec.yaml to get the correct one.
I did, like this:
flutter_rust_bridge: ^1.38.2
[dependencies]
flutter_rust_bridge = "1.38.2"
anyhow = "1"
But the version listed in cargo. lock
and pubspec.lock
are still the latest version. For this, I guess we misunderstand the 2 files--- The version listed there are indeed the latest compilable version for the crate/packgage themselves, NOT for project using these crates/packages.
Anyway, the issue is solved. Thanks.
My platform is win10. I tried to delete both
cargo.lock
andpubspec.lock
, and setflutter_rust_bridge
version to an older version in bothpubspec.yaml
andcargo.toml
. Finally, after runningjust clean && just
, it would still producing some.rs
files in which there are new struct only exists in the new version.Then, I found that both
cargo.lock
andpubspec.lock
still automatically generated with the original crate version(currently 1.49.1), which is not what I want.Inputting
flutter_rust_bridge_codegen --version
in cmd, it does output the older version. But why finally frb would do the generation with the newer version? Did I miss some settings?Somehow, this issue is like that one:https://github.com/Desdaemon/flutter_rust_bridge_template/issues/16. But following that doesn't solve my problem.