Closed virtualritz closed 2 weeks ago
Hi! Thanks for opening your first issue here! :smile:
Hi, I guess this may be a Cargokit issue instead of flutter_rust_bridge code, thus it may be helpful to ask there.
By the way, running flutter run --verbose
(i.e. the verbose flag) and paste it here may reveal the exact error more concretely a little bit.
EDIT: A quick search shows https://github.com/irondash/cargokit/blob/main/docs/architecture.md where you can have cargokit.yaml
and configure nightly toolchain, which seems related.
EDIT: A quick search shows https://github.com/irondash/cargokit/blob/main/docs/architecture.md where you can have
cargokit.yaml
and configure nightly toolchain, which seems related.
Didn't see this in my email. This solved it! Thanks heaps! :grin:
Suggestion to close this issue and prevent others from running into it:
cargokit.yaml
in the rust
subfolder when creating a new project with flutter_rust_bridge_codegen create
.
https://github.com/irondash/cargokit/blob/main/docs/architecture.md
.Good idea, and feel free to PR / I just modify the doc! Just a minor suggestion to 2nd point: Maybe mention in a new file in https://cjycode.com/flutter_rust_bridge/guides/miscellaneous
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new issue.
Describe the bug
Gives me:
This is coming from my
~/.cargo/config.toml
and the fact that the project seems to usestable
by default. The former looks like this on my machine:Removing
-Z share-generics
resolve this for me but not really, as for the code I'm binding to Dart I will need anighly
rustc
anyway, eventually.I also ran
rustup override set nightly
but it seems the toolchain is defined elsewhere? I grepped forstable
but didn't find anything suggestive of being a config option.It would be great to add some hints to the README/quickstart on how to solve this pitfall.
I would assume that my
cargo
config is fairly standard for anyone usingnightly
onlinux
who cares about build times (who doesn't?). Theshare-generics
option commonly gives me 10–15% build time reduction.Steps to reproduce
See above. Add the resp.
-Z
option to your~/.cargo/config.toml
and try toflutter run
a freshly generated project.OS
Linux (Ubuntu 23.10)
Version of
flutter_rust_bridge_codegen
2.0.0-dev.30
Flutter info
Version of
clang++
Ubuntu clang version 16.0.6 (15)