Download

Install Rust on Windows — download rustup-init.exe 2026

Rust on Windows requires rustup and the MSVC toolchain. Download rustup-init.exe, run it, select the default x86_64-pc-windows-msvc target, and Visual Studio Build Tools install automatically.
Full install guide →
A quick reCAPTCHA check will appear — complete it and the download starts automatically.
Windows 10 / 11 x64Rust 1.79 stableMSVC toolchainFree & open source
This is an unofficial guide. The official Rust site is rust-lang.org. Official Rust installer: rustup.rs.

What you need to know before installing

rustup
The official Rust toolchain installer and version manager. It installs rustc, cargo, and manages multiple toolchain versions.
rustc
The Rust compiler. Installed automatically by rustup — you rarely invoke it directly.
cargo
Rust's build system and package manager. You use cargo to build, test, run and manage dependencies.
MSVC
Microsoft Visual C++ linker — required on Windows. rustup installs Visual Studio Build Tools automatically when you choose the default target.
x86_64-pc-windows-msvc
The default and recommended Rust target on Windows. Produces native Windows binaries using the MSVC linker.
windows-rs
The official Microsoft crate for calling Win32 and WinRT APIs from Rust code.

Install Rust on Windows in 3 steps

  • 1

    Download and run rustup-init.exe

    Click the download button above. Run the installer — accept the default options. rustup installs the MSVC build tools automatically if they are not present.

  • 2

    Verify the installation

    PowerShell
    PS> rustc --version
    rustc 1.79.0 (129f3b996 2024-06-10)
    PS> cargo --version
    cargo 1.79.0 (ffa9cf99a 2024-06-03)
  • 3

    Create your first project

    PowerShell
    PS> cargo new hello-win
    PS> cd hello-win
    PS> cargo run
    Compiling hello-win v0.1.0
    Finished dev profile
    Hello, world!

Rust on Windows — complete guide index

GuideWhat it covers
Full install guideMSVC toolchain, rustup, PATH, verification
Rustup guideManage toolchains, targets, components
Download optionsrustup-init.exe, offline, standalone
Windows 11Windows 11 specific setup and fixes
MSVC toolchainVisual Studio Build Tools setup
QuickstartFirst native Windows app
Cargo on WindowsBuild, deps, workspaces
GUI developmentWinUI, egui, iced, Slint
Win32 & WinRTwindows-rs, windows-sys
Package & signMSI, MSIX, code signing
Cross-compileLinux/macOS targets from Windows
WSL vs nativeWhich to choose
PerformanceRelease builds, PGO, LTO
TroubleshootingBuild and linker errors
Not compilingCompiler error fixes
Linker errorsLNK2019, link.exe fixes
Rust vs C++Language comparison
Rust vs GoLanguage comparison
FAQCommon questions answered

Common questions

What is the fastest way to install Rust on Windows?

Download rustup-init.exe and run it. Accept the default options. rustup installs the Rust compiler, cargo, and the MSVC build tools automatically. The whole process takes about 5 minutes.

Verify with rustc --version in a new PowerShell window after install.

Do I need Visual Studio to use Rust on Windows?

You need the Visual Studio Build Tools (not the full Visual Studio IDE). rustup installs them automatically when you choose the default MSVC target. The Build Tools include the MSVC linker which Rust requires on Windows. See the MSVC toolchain guide.

What is the difference between rustup, rustc and cargo?

rustup is the toolchain manager — it installs and updates Rust. rustc is the Rust compiler — it turns .rs files into binaries. cargo is the build system and package manager — it manages your project, dependencies and build process. You use cargo for almost everything; rustup for toolchain management.