Rust for Windows
Unofficial guide • Native Windows tooling

Win32 & WinRT with Rust — windows-rs in Practice

Call native Windows APIs from Rust with windows-rs projections. Pick the right crates, enable only the namespaces you need, and avoid common pitfalls.

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

What you can build with windows-rs

Desktop utilities

File operations, notifications, shell integrations, services and more.

GUI applications

Create windows, handle input, and render UIs with frameworks or raw Win32.

System tools

Access processes, registry, performance counters, networking and COM objects.

Graphics & media

Use DirectX families and media pipelines exposed via Windows APIs.

Choosing the right crate

Pick based on your need for safety and ergonomics vs. minimal overhead.

Common pitfalls and quick fixes

Need deeper help? Visit Troubleshooting.

Next steps