The rustup website has robust installation methods, especially when you are on a Windows OS – this is what worked for me.
Run the command below in your terminal:
|
|
This downloads the installer, then proceeds to ask if you want a customization of the installation, then downloads and installs the below components:
- cargo
- clippy
- rust-docs
- rust-sdt
- rustc
- rustfmt
Then run one of these to add the binaries to the PATH of the current shell session:
The installation can be verified by running rustc
command, which returns the help output.
Useful things that can be done with this installation include:
rustc -version
: Get the installation version numberrustup update
: Update the current installation to the LTSrustup self uninstall
: Uninstalls Rust and all the other components installed along it
Voila!