2018-10-07 12:21:56 +00:00
|
|
|
# rustup
|
2020-02-22 02:47:54 +00:00
|
|
|
# The Rust toolchain installer
|
2018-10-07 12:21:56 +00:00
|
|
|
|
|
|
|
# update rustup toolchain
|
|
|
|
rustup update
|
|
|
|
|
|
|
|
# install nightly build
|
|
|
|
rustup install nightly
|
|
|
|
|
|
|
|
# use rustc from nightly toolchain
|
|
|
|
rustup run nightly rustc --version
|
|
|
|
|
|
|
|
# switch to nightly installation
|
|
|
|
rustup default nightly
|
|
|
|
|
|
|
|
# List all available targets for the active toolchain
|
|
|
|
rustup target list
|
|
|
|
|
|
|
|
# Install the Android target
|
|
|
|
rustup target add arm-linux-androideabi
|
|
|
|
|
|
|
|
# Run a shell configured for the nightly compiler
|
|
|
|
rustup run nightly bash
|
|
|
|
|
|
|
|
# Show which toolchain will be used in the current directory
|
|
|
|
rustup show
|