rsRustPrimer
< Back to module

Getting started

Install Rust

You install Rust with rustup, the official version manager. On macOS or Linux a single command is enough. On Windows, download the installer from rustup.rs.

rust
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
Installs the stable toolchain into ~/.cargo and ~/.rustup.
rust
rustc --version
cargo --version
Check the installation: both commands should print a version number.

Three tools to remember. rustc is the compiler; you will rarely call it directly. cargo is the build tool, dependency manager and test runner, the equivalent of Maven or Gradle. rustup keeps everything up to date with rustup update.