I've seen rustup
be referred to as a "toolchain installer", but it's hard to find an exact definition of what Rust considers a "toolchain" to be and what the scope is for the concept.
I already have the Rust compiler and Cargo installed. What more does rustup
bring? Is it just a Rust-version-switcher?
As a .NET-developer, maybe there is there a parallel which makes it easier for me to grasp this concept?
A toolchain is a specific version of the collection of programs needed to compile a Rust application. It includes, but is not limited to:
rustc
cargo
rustdoc
There are additional components that can be installed, such as
rustfmt
clippy
miri
rust-analyzer
or the Rust Language ServerRustup provides ways to install, remove, update, select and otherwise manage these toolchains and their associated pieces.
See also: