Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nightly documented workaround does not work #319

Closed
brongan opened this issue May 11, 2024 · 2 comments
Closed

Nightly documented workaround does not work #319

brongan opened this issue May 11, 2024 · 2 comments

Comments

@brongan
Copy link

brongan commented May 11, 2024

Report

Following the instructions in https://rinf.cunarist.com/frequently-asked-questions/#how-do-i-use-nightly-rust I created the file "native/hub/cargokit.yaml" with the specified contents.

Even if I have the stable toolchain uninstalled, flutter run installs the stable toolchain.

Steps to Reproduce

rinf template
flutter run

System Information

rustc 1.80.0-nightly (faefc618c 2024-05-07)
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel , 3.19.6, on Arch Linux 6.8.9-zen1-2-zen, locale en_US.UTF-8)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✗] Chrome - develop for the web (Cannot find Chrome executable at google-chrome)
    ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.
[✓] Linux toolchain - develop for Linux desktop
[!] Android Studio (not installed)
[✓] Connected device (1 available)
[✓] Network resources

! Doctor found issues in 2 categories.
@temeddix
Copy link
Member

temeddix commented May 11, 2024

Hi @brongan , thank you for your report :)

Looks like the current documentation only states how to use nightly Rust in release mode, not debug mode. Could you try writing the content below and try it again?

cargo:
  debug:
    toolchain: nightly
  release:
    toolchain: nightly

More information about cargokit.yaml can be seen at the link below. FYI, Cargokit is the builder(+linker) for Rust crates that are used in various Flutter projects.

If the problem persists, please let me know! If this solves your problem, I will update the docs.

@brongan
Copy link
Author

brongan commented May 25, 2024

That completely makes sense and fixed my issue thanks!.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants