rustup

Rust rustup toolchains

rustup manages compiler installations. Stable, beta and nightly are moving channels; an exact version selects a fixed release. Installation changes local toolchain storage and may use the network; only run it with permission. Example format: shell; manual demonstration; see prerequisites and scope below. Expected result (not executed): If installed, the selected compiler identifies itself as rustc 1.85.0; the list depends on the machine. Why: rustup run selects a particular installed toolchain for one command. Common mistake: Assuming installing a new toolchain changes the language edition of existing packages.

Formal Syntax & Structure

rust syntaxrust
rustup toolchain list; rustup toolchain install VERSION

Working Example

Example Snippetrust
rustup toolchain listrustup run 1.85.0 rustc --version
Rust Reference