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

Change directions to indicate use of the rust-toolchain file to set compiler to nightly #43

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/003-building-a-crate-for-avr.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down