Skip to content

Latest commit

 

History

History
28 lines (20 loc) · 1.88 KB

File metadata and controls

28 lines (20 loc) · 1.88 KB

Rust Installation Instructions and Notes

Installation of Rust, Cargo and Rustup

To install Rust on Windows go to this link and download this version of rustup. You will need a copy of Visual C++ Build Tools to compile rust. You can also install this using chocolatey with choco install rust or winget with winget install --id=Rust.rustup -e.

For WSL use the command shown below to install Rust in your chosen distro and then follow the installation instructions. Afterwards you can check to see if it installed correctly by using: rustc --version. Note: using the exec "$SHELL" will not work to see if the Rust components were added until you do a more complete restart of the shell. Any Linux distro installation should work the same commands shown below.

# download and run rustup to install rust
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
# check the rust and other rust components installation (use && for bash to run all three)
rustc --version; cargo --version; rustup --version
# to update rust run the following:
rustup update

# to see all cargo installed packages/applications such as Nushell Bottom or Typst you can use the command below
cargo install --list

# [install cargo-update which makes updating cargo packages/applications easier](https://crates.io/crates/cargo-update)
cargo install cargo-update
# check for all newer versions of cargo installed packages/applications (also self updates cargo install-update when applicable)
cargo install-update -a

Project and Environment Management

Instead of using environments like what is used in Python, Rust uses a local Cargo.toml file to dictate how the rust files in your project/package are run and with what packages.