Switch Rust toolchain versions globally or per-project using rustup install, default, and override commands.
Use rustup to install, list, and set the default or override toolchain for your project.
rustup toolchain install stable
rustup default stable
rustup override set nightly
- Install a specific toolchain version:
rustup toolchain install 1.75.0
- Set it as the global default:
rustup default 1.75.0
- Set it for the current project directory only:
rustup override set 1.75.0
- Verify the active toolchain:
rustup show
Rustup is the manager that lets you switch between different versions of the Rust compiler. You use it to install new versions, set one as your default for all projects, or pin a specific version to a single project folder. Think of it like switching between different versions of a web browser depending on which website you are visiting.