Rust
Rustup Commands
Manage Rust toolchains with rustup. Install stable, beta, and nightly channels, add compilation targets, and manage components like rust-analyzer and clippy.
8 commands
Pro Tips
Use 'rustup default stable' and 'rustup override set nightly' per-project for different toolchains.
Add cross-compilation targets: 'rustup target add wasm32-unknown-unknown' for WebAssembly.
Update everything: 'rustup update' updates all installed toolchains and components.
Common Mistakes
Nightly features can break between releases. Pin a specific nightly date in rust-toolchain.toml for stability.
Some components aren't available on all nightly builds. Use 'rustup component add --toolchain nightly' and check availability.