mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 14:27:49 +00:00
Use TOML syntax for rust-toolchain file
This commit is contained in:
@@ -595,8 +595,9 @@ rustup override set nightly
|
||||
|
||||
Alternatively, you can add a file called **`rust-toolchain`** to the project's root directory with the required Rust version:
|
||||
|
||||
```
|
||||
nightly
|
||||
```toml
|
||||
[toolchain]
|
||||
channel = "nightly"
|
||||
```
|
||||
|
||||
After doing one of these things, both the `cargo` and `rustc` command should use a nightly version of Rust when invoked from within the current directory. You can verify that you have a nightly version installed and active by running `rustc --version`: The version number should contain `-nightly` at the end, for example:
|
||||
|
||||
Reference in New Issue
Block a user