What Is rustup and How Does It Work?

rustup is the official command-line tool for installing, updating, and managing multiple Rust toolchains and components.

rustup is the official installer and version manager for Rust that lets you install, update, and switch between multiple Rust toolchains and components. It manages the compiler (rustc), package manager (cargo), and optional components like rust-docs or rustfmt across different versions.

rustup toolchain install 1.90 -c rust-docs
rustup default 1.90
rustup component add rustfmt