mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 22:37:49 +00:00
Add information on rust-toolchain file to set-up-rust (#399)
This commit is contained in:
committed by
Philipp Oppermann
parent
8bd66bf06f
commit
02941fe5d3
@@ -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/
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user