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

Specifying how to set toolchain to nightly for project can use rust-toolchain file #42

Open
ssnover opened this issue Sep 5, 2022 · 0 comments · May be fixed by #43
Open

Specifying how to set toolchain to nightly for project can use rust-toolchain file #42

ssnover opened this issue Sep 5, 2022 · 0 comments · May be fixed by #43

Comments

@ssnover
Copy link

ssnover commented Sep 5, 2022

The book currently indicates that the user should set their toolchain for the project using rustup override set nightly which does achieve the purpose locally. However if the project is moved or pushed to a git repository and cloned later, this information will be lost and not everyone will be savvy enough to know the toolchain needs to be nightly.

A better solution is to add a rust-toolchain file to the root of the project with echo "nightly" > rust-toolchain which will persist in the project.

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