To make it easier for people in various platforms to download and install the standard tools, the Rust team developed rustup. The rustup tool provides a way to install prebuilt binaries of the Rust toolset (rustc and Cargo) easily for your local user. It also allows installing various other components, such as Rust source code and documentation.
The officially supported way to install Rust is to use rustup.rs:
curl https://sh.rustup.rs -sSf | sh
This command will download the installer and run it. The installer will, by default, install the stable version of the Rust compiler, the Cargo build tool, and the API documentation. They are installed by default for the current user under the .cargo directory, and rustup will also ...