From 943f950c543730dd7bad2ae08c74cacab134060e Mon Sep 17 00:00:00 2001 From: Philipp Oppermann Date: Sun, 7 Feb 2021 19:07:15 +0100 Subject: [PATCH] Use TOML syntax for `rust-toolchain` file --- blog/content/edition-3/posts/01-minimal-kernel/index.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/blog/content/edition-3/posts/01-minimal-kernel/index.md b/blog/content/edition-3/posts/01-minimal-kernel/index.md index 66e60af6..23cca89f 100644 --- a/blog/content/edition-3/posts/01-minimal-kernel/index.md +++ b/blog/content/edition-3/posts/01-minimal-kernel/index.md @@ -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: