Rust for Windows
Unofficial guide • Native Windows tooling

Install Rust on Windows — MSVC Toolchain Setup

Download rustup-init.exe, add the MSVC host toolchain, and configure Visual Studio Build Tools + Windows SDK for native builds.

Open Quickstart Troubleshoot
File: rustup-init.exe • Source: rust-lang.org • Last updated: —

Step-by-step (MSVC toolchain)

1) Download rustup-init.exe

Use the Direct download button above to get the official installer for x86_64-pc-windows-msvc.

2) Run the installer

Double-click the file and follow prompts. Choose the default MSVC host toolchain unless you need MinGW.

3) Install build tools

Install Visual Studio Build Tools (C++ workload) and the Windows 10/11 SDK if not present.

4) Restart terminal

Open a new Developer PowerShell/Command Prompt so updated PATH takes effect.

5) Verify toolchain

Run rustc --version and cargo --version. Create a test project: cargo new hello then cargo run.

6) Keep it updated

Update regularly with rustup update. Add components via rustup component add clippy rustfmt.

Verify your Windows build environment

Common issues and quick fixes

Still stuck? See the Troubleshooting guide.

What you get with MSVC

Best compatibility with Windows SDK, debuggers, and native desktop tooling. Recommended for most users.