
Posted on 2026-01-19
# install
brew install rustup
# version
rustup --version
# check current toolchain list
rustup toolchain list
# install defalut stable rust version
rustup default stablerustup showcd my_project
rustup override set nightlyrustup override unsetrustup toolchain install 1.75.0
rustup override set 1.75.0# rustup self update
rustup self update
# toolchain update
rustup update
rustup update stable
rustup update nightly# general
rustup component add rustfmt
rustup component add clippy
# specific
rustup component add rust-src --toolchain nightly
# check
rustup component list --installedrustup show
Default host: aarch64-apple-darwin
rustup home: /Users/tio/.rustup
installed toolchains
--------------------
stable-aarch64-apple-darwin (active, default)
active toolchain
----------------
name: stable-aarch64-apple-darwin
active because: it's the default toolchain
installed targets:
aarch64-apple-darwin
# Linux ARM server
rustup target add aarch64-unknown-linux-gnu
# Linux x86_64
rustup target add x86_64-unknown-linux-gnu
# check
rustup target list --installed
# static link
rustup target add x86_64-unknown-linux-musl
rustup target add
cargo build --target x86_64-unknown-linux-gnu
# build failed
# Linux ARM ABI ≠ macOS ARM ABIrustup self uninstall