To get access to Rust, one may install a system package on *nix platforms
(Homebrew on macOS), use the rustup script, install an IDE (all platforms),
or use a package manager like Chocolatey or Scoop on Windows.
See all the main installation methods on
Install Rust official page, we will
only briefly cover some of them here.
3.2.1rustup¶
The Rust toolchain is best installed through rustup, a tool dedicated to
the toolchain management.
rustup is found in package repository of Ubuntu (apt search rustup), or
Homebrew on MacOS (brew search rustup).
If not found as an official package on a *nix platform, rustup can be
downloaded and installed directly from the
Install Rust page.
On Windows, we may either use the Scoop package
manager or download the rustup-init.exe executable from the
Other installation methods
page.
Once installed, we install the stable version or Rust:
rustup default stable3.2.2IDEs¶
3.2.2.1VS Code¶
See Rust in Visual Studio Code to install Rust inside VS Code.