rustup

rustup

TLDR

Install the nightly toolchain for your system

$ rustup install nightly
copy


Switch the default toolchain to nightly so that the cargo and rustc commands will use it
$ rustup default nightly
copy


Use the nightly toolchain when inside the current project, but leave global settings unchanged
$ rustup override set nightly
copy


Update all toolchains
$ rustup update
copy


List installed toolchains
$ rustup show
copy


Run cargo build with a certain toolchain
$ rustup run [toolchain_name] cargo build
copy


Open the local rust documentation in the default web browser
$ rustup doc
copy

Copied to clipboard