Install, manage, and update Rust toolchains. Some subcommands, such as
toolchain
,target
,update
, etc. have their own usage documentation. More information: https://rust-lang.github.io/rustup.
rustup install nightly
cargo
and rustc
commands will use it:rustup default nightly
rustup override set nightly
rustup update
rustup show
cargo build
with a certain toolchain:rustup run toolchain cargo build
rustup doc