Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
Install rustup
Linux and macOS
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | bash -s -- -y
Rust tools (rustc
, cargo
, rustup
, etc)
will be added to Cargo's bin directory,
located at $HOME/.cargo/bin
.
You can also run the following command to install rust.
xinstall rustup -ic
Windows
-
Download rustup.exe and install it.
-
Download and install the Build Tools for Visual Studio 2019 . Select C++ tools during the installation.
-
Restart your computer.
Install stable/nightly Versions of Rust
rustup toolchain install stable rustup toolchain install beta rustup toolchain install nightly rustup default stable
Install rust-src
rustup component add rust-src
Install rustfmt
rustup component add rustfmt
Install Clippy
rustup component add clippy
References
-
https://rust-lang.github.io/rustup/index.html
-
https://github.com/rust-lang/rustup
-
Unable to compile Rust hello world on Windows: linker link.exe not found