Installing Rust

In this lesson, we’ll download and install Rust and its essential tools.

Rust installation

Rust requires that you install a toolchain on your computer. The toolchain includes the Rust compiler and various tools to make working with the language easier. The easiest way to install the toolchain is to visit the rustup website. rustup detects the operating system you’re running and displays instructions for your platform. Launch a web browser and open rustup.rs.

Installation on Microsoft Windows

If you’re a Microsoft Windows user, download and run the linked rustup-init.exe file. rustup might ask you to install the C++ build tools before proceeding. Microsoft Windows doesn’t ship with development tools, and the Windows platforms tools aren’t open source, so rustup can’t legally give them to you. If you see this message:

  1. Go to the “Visual Studio” download page.

  2. In the “Tools for Visual Studio 2019” section, download “Build Tools for Visual Studio 2019” and run the installer.

  3. Follow the on-screen instructions, and install the C++ ...