I know I can set rust nightly on a project by running rustup override set nightly. But I was wondering if I could state it on the Cargo.toml, so if I build in another machine it'll just run with nightly from the start. So far I haven't been able to find a way to do it.
Asked
Active
Viewed 2,434 times
9
trent
- 21,712
- 7
- 47
- 79
Tomás Vallotton
- 349
- 3
- 9
-
2STEEL's answer about the `rust-toolchain` file should help you. – justinas Mar 17 '21 at 21:19
1 Answers
8
According to the documentation it is not possible to specify it in the Cargo.toml file.
But you can create a new file called rust-toolchain.toml containing the following:
[toolchain]
channel = "nightly"
For more options look at the section The toolchain file in the same documentation.
Sören
- 369
- 1
- 5