Add information on rust-toolchain file to set-up-rust (#399)

This commit is contained in:
Josh Backstein
2018-03-07 22:12:28 -07:00
committed by Philipp Oppermann
parent 8bd66bf06f
commit 02941fe5d3

View File

@@ -21,7 +21,11 @@ This blog post tries to set up Rust step-by-step and point out the different pro
[Github repository]: https://github.com/phil-opp/blog_os/tree/post_3 [Github repository]: https://github.com/phil-opp/blog_os/tree/post_3
## Installing Rust ## Installing Rust
We need a nightly compiler, as we will use many unstable features. To manage Rust installations I highly recommend [rustup]. It allows you to install nightly, beta, and stable compilers side-by-side and makes it easy to update them. To use a nightly compiler for the current directory, you can run `rustup override add nightly`. We need a nightly compiler, as we will use many unstable features. To manage Rust installations I highly recommend [rustup]. It allows you to install nightly, beta, and stable compilers side-by-side and makes it easy to update them. To use a nightly compiler for the current directory, you can run `rustup override add nightly`. Alternatively, you can add a file called `rust-toolchain` to the project's root directory:
```
nightly
```
[rustup]: https://www.rustup.rs/ [rustup]: https://www.rustup.rs/