From the Install doc:
- Unix (macOS and Linux)
$ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh $ # Previously the guide just said this: $ curl https://sh.rustup.rs -sSf | sh
- Windows
- Download the
.exe
installer on the doc.
- Download the
If you like, you can download save the install script yourself by going to sh.rustup.rs/ or view the source on GitHub at rustup-init.sh.
That will install the following commands and add them to Cargo's bin so you can execute them from anywhere.
rustup
cargo
rustc