Basic Rust Commands
-
To check version or to verify that Rust is installed properly:
rustc --version
-
Update Rust:
rustup update
-
Uninstall Rust and rustup:
rustup self uninstall
-
Open Rust Docs locally on browser:
rustup doc
-
List the rustup toolchain
rustup toolchain list
-
Install rustup toolchain
rustup toolchain install nightly-x86_64-unknown-linux-gnu
-
Use nightly on a specific project (after this all the
rustc
andcargo
commands will use nightly):cd ~/projects/needs-nightly rustup override set nightly