Skip to content

Commit

Permalink
Tell rustup to automatically use the nightly channel (#91)
Browse files Browse the repository at this point in the history
Since MCHPRS only compiles using rust nightly, it can ship a
`rust-toolchain` file that will tell rustup to automatically switch to
the nightly channel.

This behavior is documented here:
https://rust-lang.github.io/rustup/overrides.html#the-toolchain-file

This also prevents you needing to provide instructions to add a manual
override in the README.
  • Loading branch information
tyler569 authored Oct 23, 2022
1 parent fdd2f4f commit 47f6b24
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ If the Rust compiler is not already installed, you can find out how [on their of
```shell
git clone https://github.com/MCHPR/MCHPRS.git
cd MCHPRS
rustup override set nightly
cargo build --release
```

Expand Down
1 change: 1 addition & 0 deletions rust-toolchain
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nightly

0 comments on commit 47f6b24

Please sign in to comment.