From 02941fe5d33402e01191411457e66389e4fa5b1b Mon Sep 17 00:00:00 2001 From: Josh Backstein Date: Wed, 7 Mar 2018 22:12:28 -0700 Subject: [PATCH] Add information on rust-toolchain file to set-up-rust (#399) --- blog/content/posts/03-set-up-rust/index.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/blog/content/posts/03-set-up-rust/index.md b/blog/content/posts/03-set-up-rust/index.md index d4f46cff..4272ad7a 100644 --- a/blog/content/posts/03-set-up-rust/index.md +++ b/blog/content/posts/03-set-up-rust/index.md @@ -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 ## 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/