Installation
Linux and MacOS
Follow the Linux and MacOS section of the Rust book’s installation instructions.
Windows
You have two options:
- The native Windows installer. For this option, follow the Windows section of the Rust book’s installation instructions.
- Install Rust inside Windows Subsystem for Linux (WSL)
- Follow the VS Code WSL setup guide
- Open a new terminal from the top menu within VS Code and run these commands one by one to download Rust:
1.
sudo apt update2.sudo apt upgrade3.sudo apt install build-essential rustup4.rustup default stable - Go to the VS Code ‘Extensions’ tab and install the
rust-analyzerextension