Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Installation

Linux and MacOS

Follow the Linux and MacOS section of the Rust book’s installation instructions.

Windows

You have two options:

  1. The native Windows installer. For this option, follow the Windows section of the Rust book’s installation instructions.
  2. Install Rust inside Windows Subsystem for Linux (WSL)
  3. Follow the VS Code WSL setup guide
  4. Open a new terminal from the top menu within VS Code and run these commands one by one to download Rust: 1. sudo apt update 2. sudo apt upgrade 3. sudo apt install build-essential rustup 4. rustup default stable
  5. Go to the VS Code ‘Extensions’ tab and install the rust-analyzer extension