Installing Rust
The most straightforward approach to installing the Rust language and toolchain is to visit the Rustup website. This is the minimal approach for a quick install of the standard Rust environment. You are presented with minimal options and documentation. Here is the web location:
Alternatively, visit the Install Rust web page for more documentation and options, such as selecting either a 32-bit or 64-bit installation. Here is the location of the Install Rust page:
www.rust-lang.org/tools/install
For even more details, visit the Rust Getting Started page. This page documents how to install Rust, with some options, and it provides some helpful “getting started” commands for the Cargo tool, the Rust build tool and package manager. The bottom of the web page lists various editors and integrated development environments (IDEs) available to Rust developers:
www.rust-lang.org/learn/get-started
Rustup installs the Rust toolchain locally in these directories:
Windows: \users\{user}\.cargo\bin
Linux: home/.cargo/bin
macOS: /users/{user}/.cargo/bin
A great practice is to trust but verify. This would include your Rust installation. This is easily accomplished with either the rustc or the cargo tool, both included in the newly installed Rust toolchain. From an operating system command line, enter these commands:
rustc --version cargo --version
The proper response is the current version of these tools:
$ cargo --version cargo 0.00.0 (a748cf5a3 0000-00-00) $ rustc --version rustc 0.00.0 (a8314ef7d 0000-00-00)
If either command returns an error, the implication is that Rust is not properly installed or the environment variables are not set correctly.