Rust for Windows
Unofficial guide • Native Windows tooling

Rust for Windows Quickstart — Your First Native App

Install the MSVC toolchain, create a project, add Windows API bindings when needed, and ship a native executable.

Installation guide Windows APIs
File: rustup-init.exe • Source: rust-lang.org • Last updated: —

Steps to your first native Windows app

1) Install the toolchain

Use the button above to get the official rustup-init.exe and choose the default MSVC host.

2) Open a fresh terminal

Launch x64 Native Tools Command Prompt or Developer PowerShell so PATH is up-to-date.

3) Create and run

Initialize a new project and run it to ensure compiler, linker and SDK are functional.

4) Add Windows APIs

Adopt windows-rs or other bindings when you need Win32/WinRT capabilities.

5) Iterate fast

Use incremental builds and dev tools (linters, formatters) to move quickly on Windows.

6) Prepare for release

Package and sign your executable to reduce SmartScreen prompts. See the Packaging guide.

Environment checklist

If something fails to build, jump to Troubleshooting.

Next steps