From 2a316d568fceedbfbfaf141d29869804d28a91e8 Mon Sep 17 00:00:00 2001 From: ssnover Date: Mon, 5 Sep 2022 12:35:13 -0600 Subject: [PATCH] Change directions to indicate use of the rust-toolchain file to set compiler to nightly --- src/003-building-a-crate-for-avr.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/003-building-a-crate-for-avr.md b/src/003-building-a-crate-for-avr.md index 4abff47..d815c02 100644 --- a/src/003-building-a-crate-for-avr.md +++ b/src/003-building-a-crate-for-avr.md @@ -22,9 +22,9 @@ In summary, there are two options: ## Make sure you use the nightly version of Rust, not the default stable channel -The best way to ensure a crate is using the Nightly compiler is to run `rustup override set nightly` inside a terminal -within the root directory of the crate. After this is done, `cargo` will by-default use the AVR-enabled Nightly compiler -any time `cargo` is used within the directory tree of the crate. +The best way to ensure a crate is using the Nightly compiler is to add a `rust-toolchain` to the crate's root +directory with contents `nightly`: `echo "nightly" > rust-toolchain`. After this is done, `cargo` will +by-default use the AVR-enabled Nightly compiler any time `cargo` is used within the directory tree of the crate. ## Compiling a crate