Follow the steps to implement this recipe:
- Update the stable version of Rust to the latest version:
rustup update stable
- Update the rustup tool to the latest version:
rustup self update
- Install the nightly toolkit version of the Rust compiler:
rustup install nightly
- Run the nightly version of Rust without changing the default version of Rust:
rustup run nightly rustc --version
- Change the default version of the Rust compiler to the nightly version:
rustup default nightly
- Update the nightly version of Rust:
rustup update
- This will update both the stable and nightly versions of the Rust compiler.
We should get the following output on execution of the rustup tool:
- On installation of the nightly version:
- Setting nightly as the default version: