NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
crates.io, #11 most downloaded on crates.io
Rust for Windows
Latest stable
0.61.2
Last release 1 years ago
06 Oct 2025
Release timing varies
gaps range from 2 weeks to 11 months
Most releases are documented
notes for 17 of 21 stable releases
2 versions withdrawn
withdrawn after publishing
5 years old
23 releases · first in 2021
Drag across the ruler to compare, or tap a release to open it.
Nothing published for this version
Nothing published for this version
The windows-registry, windows-strings, and windows-result crates are also major version updates since they include small breaking changes.
Major crate updates:
windows 0.59.0windows-core 0.59.0
windows-implement 0.59.0windows-interface 0.59.0windows-targets 0.53.0
windows_i686_msvc 0.53.0windows_x86_64_msvc 0.53.0windows_aarch64_msvc 0.53.0windows_i686_gnu 0.53.0windows_x86_64_gnu 0.53.0windows_i686_gnullvm 0.53.0windows_x86_64_gnullvm 0.53.0windows_aarch64_gnullvm 0.53.0windows-bindgen 0.59.0windows-registry 0.4.0windows-result 0.3.0windows-strings 0.3.0cppwinrt 0.2.0Minor crate updates:
windows-version 0.1.2Excluded:
windows-sys 0.59.0Things to keep in mind:
The tag/release names no longer map directly to the crate versions, so to find samples for a particular release requires looking at the releases page and finding the release that most recently updated a particular crate.
The windows-bindgen crate includes the major code generation overhaul that brings many improvements - be sure to check out the PR description for more information. The resulting code gen depends on the new version of windows-core and its dependencies, unless you include the --sys option. #3359
The cppwinrt crate constitutes a major update due to streamlining the error handling. #3415
The windows-registry, windows-strings, and windows-result crates are also major version updates since they include small breaking changes.
The windows-targets crate finally receives a major version update, the first in over a year. This is due to #3359 and #3342 potentially introducing breaking changes. Although unlikely, these updates introduced sufficient changes that make it hard to ensure that the windows-targets libs don't break existing code. As we're updating windows-targets anyway, I took the liberty to bump the MSRV to 1.60 - to match the latest version of windows-sys - and remove the old but unused doc macro feature. Both remained for compatibility with very old dependents of the windows-targets crate.
The windows-version crate receives a minor update to update its dependency on the windows-targets crate.
Beyond these specifics, this update is the culmination of around 6 months worth of work on the windows-rs project. The biggest improvements comes from the new code generation engine, but many other improvements are now also available for production. This includes support for many new lints, warnings, and suggestions provided by the Rust toolchain; much smaller code gen thanks to deriving many more traits; more efficient code gen; major improvements to WinRT type system and implementation support; more robust and consistent error handling; stock collection and async support; improved support for class hierarchies; and much more!
In addition to "what's changed" below, check out what's changed for notes for 0.60.0 and 0.59.0 for additional changes that roll up to the crates published as part of this release.
std references in windows and windows-core crates for no_std builds by @kennykerr in https://github.com/microsoft/windows-rs/pull/3317unwrap helper for NTSTATUS by @kennykerr in https://github.com/microsoft/windows-rs/pull/3324windows-bindgen update by @kennykerr in https://github.com/microsoft/windows-rs/pull/3359windows-bindgen should generate no_std bindings by default by @kennykerr in https://github.com/microsoft/windows-rs/pull/3366BOOLEAN to bool by @kennykerr in https://github.com/microsoft/windows-rs/pull/3376transmute for input value type parameter bindings by @kennykerr in https://github.com/microsoft/windows-rs/pull/3377windows-bindgen by @kennykerr in https://github.com/microsoft/windows-rs/pull/3379track_caller to make debugging bindgen build script errors easier by @kennykerr in https://github.com/microsoft/windows-rs/pull/3383windows-bindgen now uses Ref and OutRef for COM interface traits by @kennykerr in https://github.com/microsoft/windows-rs/pull/3386windows-bindgen to support unsafe_op_in_unsafe_fn by @kennykerr in https://github.com/microsoft/windows-rs/pull/3393Ref work with more than just interface types by @kennykerr in https://github.com/microsoft/windows-rs/pull/3394cppwinrt should consistently panic on failure by @kennykerr in https://github.com/microsoft/windows-rs/pull/3415track_caller to make debugging cppwinrt build script errors easier by @kennykerr in https://github.com/microsoft/windows-rs/pull/3417transmute where possible by @kennykerr in https://github.com/microsoft/windows-rs/pull/3421Full Changelog: https://github.com/microsoft/windows-rs/compare/0.60.0...0.61.0
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Nothing published for this version
Nothing published for this version
This release includes an update to the windows-registry and windows-strings crates, mainly to provide various improvements to registry support for rus
This release includes an update to the windows-registry and windows-strings crates, mainly to provide various improvements to registry support for rustup.
Value to/from HSTRING conversion by @kennykerr in https://github.com/microsoft/windows-rs/pull/3190From<&str> for GUID with TryFrom<&str> by @kennykerr in https://github.com/microsoft/windows-rs/pull/3193windows-registry by @kennykerr in https://github.com/microsoft/windows-rs/pull/3215windows-registry crate by @kennykerr in https://github.com/microsoft/windows-rs/pull/3214ready support by @kennykerr in https://github.com/microsoft/windows-rs/pull/3221spawn support by @kennykerr in https://github.com/microsoft/windows-rs/pull/3235Eq for structs containing floating point type parameters by @kennykerr in https://github.com/microsoft/windows-rs/pull/3255noexcept methods in a composable hierarchy by @kennykerr in https://github.com/microsoft/windows-rs/pull/3262windows-metadata by @kennykerr in https://github.com/microsoft/windows-rs/pull/3268Eq and PartialEq for structs containing callbacks by @kennykerr in https://github.com/microsoft/windows-rs/pull/3270windows-bindgen crate by @kennykerr in https://github.com/microsoft/windows-rs/pull/3272web on most workflows by @kennykerr in https://github.com/microsoft/windows-rs/pull/3279VARIANT support to the windows crate by @kennykerr in https://github.com/microsoft/windows-rs/pull/3282jsonschema dependency by @kennykerr in https://github.com/microsoft/windows-rs/pull/3286raw-dylib testing by @kennykerr in https://github.com/microsoft/windows-rs/pull/3287cppwinrt concurrency issue by @kennykerr in https://github.com/microsoft/windows-rs/pull/3289Deref implementation for HSTRING by @kennykerr in https://github.com/microsoft/windows-rs/pull/3291Full Changelog: https://github.com/microsoft/windows-rs/compare/0.59.0...0.60.0
This release includes an update to the windows-sys crate only. The windows-sys crate is updated very infrequently and only when there is an explicit n
This release includes an update to the windows-sys crate only. The windows-sys crate is updated very infrequently and only when there is an explicit need to do so. The 0.59.0 release includes a rollup of API fixes, updates, and additions since the 0.52.0 release nine months ago. Notably:
Full Changelog: https://github.com/microsoft/windows-rs/compare/0.52.0...0.59.0
This release includes updates to all crates. This includes the first update to the windows-sys crate in 8 months. It also includes the first published
This release includes updates to all crates. This includes the first update to the windows-sys crate in 8 months. It also includes the first published version of the riddle tool and the windows-version crate.
bindgen/riddle filters by @kennykerr in https://github.com/microsoft/windows-rs/pull/2634BOOLEAN parameter binding by @kennykerr in https://github.com/microsoft/windows-rs/pull/2635HRESULT input by @kennykerr in https://github.com/microsoft/windows-rs/pull/2646StaticLibrary attribute by @kennykerr in https://github.com/microsoft/windows-rs/pull/2647PartialEq, Eq, Debug, Clone for interfaces by @kennykerr in https://github.com/microsoft/windows-rs/pull/2651bindgen refactoring by @kennykerr in https://github.com/microsoft/windows-rs/pull/2654NTSTATUS by @kennykerr in https://github.com/microsoft/windows-rs/pull/2658query method on ComInterface trait by @kennykerr in https://github.com/microsoft/windows-rs/pull/2659QueryInterface implementation by @kennykerr in https://github.com/microsoft/windows-rs/pull/2660docs feature by @kennykerr in https://github.com/microsoft/windows-rs/pull/2676implement and interface macros by @kennykerr in https://github.com/microsoft/windows-rs/pull/2696windows-version crate by @kennykerr in https://github.com/microsoft/windows-rs/pull/2702Full Changelog: https://github.com/microsoft/windows-rs/compare/0.48.5...0.52.0
This release includes an update to all crates to address a target version reliability issue. This issue is detailed here: https://github.com/microsoft
This release includes an update to all crates to address a target version reliability issue. This issue is detailed here: https://github.com/microsoft/windows-rs/issues/2410#issuecomment-1490802715
Full Changelog: https://github.com/microsoft/windows-rs/compare/0.47.0...0.48.0
As a reminder, updates are only published by request (#2299). This release provides an update to the windows-sys crate. It does _not_ include an updat
As a reminder, updates are only published by request (#2299). This release provides an update to the windows-sys crate. It does not include an update to the windows crate.
This is the first update to the windows-sys crate in 4 months and primarily includes a number of fixes stemming from improvements to the Win32 metadata. Optional support for raw-dylib is now also provided.
cfg attribute queries by @kennykerr in https://github.com/microsoft/windows-rs/pull/2280Changelog for windows-sys crate: https://github.com/microsoft/windows-rs/compare/0.42.0...0.45.0
This release provides a major update to the windows-sys crate, the first update since 0.36.1, and includes numerous fixes and improvements to the comp
This release provides a major update to the windows-sys crate, the first update since 0.36.1, and includes numerous fixes and improvements to the completeness and correctness of both API definitions and import libs.
winmd files from windows-metadata crate by @kennykerr in https://github.com/microsoft/windows-rs/pull/2060implement macro traits need not be recursively dependent by @kennykerr in https://github.com/microsoft/windows-rs/pull/2062windows-sys test coverage by @kennykerr in https://github.com/microsoft/windows-rs/pull/2063Changelog for windows crate: https://github.com/microsoft/windows-rs/compare/0.41.0...0.42.0
Changelog for windows-sys crate: https://github.com/microsoft/windows-rs/compare/0.36.1...0.42.0
This is a minor service release to work around docs.rs limitations in order to publish windows-sys docs.
This is a minor service release to work around docs.rs limitations in order to publish windows-sys docs.
no_std by @ChrisDenton in https://github.com/microsoft/windows-rs/pull/1722Full Changelog: https://github.com/microsoft/windows-rs/compare/0.36.0...0.36.1
Avoid clearing SetLastError when allocating string params by @kennykerr in https://github.com/microsoft/windows-rs/pull/1665
SetLastError when allocating string params by @kennykerr in https://github.com/microsoft/windows-rs/pull/1665heap_string function by @rylev in https://github.com/microsoft/windows-rs/pull/1667IActivationFactory definition with tailored definition by @kennykerr in https://github.com/microsoft/windows-rs/pull/1678HSTRING and OsStr/OsString by @kaivol in https://github.com/microsoft/windows-rs/pull/1693Matrix3x2::identity() and Matrix3x2::translation(f32, f32) const by @TheOddGarlic in https://github.com/microsoft/windows-rs/pull/1695Event<T> type that can be used to implement a WinRT event by @kennykerr in https://github.com/microsoft/windows-rs/pull/1705Full Changelog: https://github.com/microsoft/windows-rs/compare/0.35.0...0.36.0
Update Windows metadata, import libraries by @riverar in https://github.com/microsoft/windows-rs/pull/1604
interface feature could not be used without the implement feature by @rylev in https://github.com/microsoft/windows-rs/pull/1612DataProtection sample by @kennykerr in https://github.com/microsoft/windows-rs/pull/1624DataProtection sample to illustrate buffer byte access by @kennykerr in https://github.com/microsoft/windows-rs/pull/1626IDispatch edge case by @kennykerr in https://github.com/microsoft/windows-rs/pull/1642BSTR allocator as PCSTR and PCWSTR parameter allocator by @kennykerr in https://github.com/microsoft/windows-rs/pull/1657Full Changelog: https://github.com/microsoft/windows-rs/compare/0.34.0...0.35.0
Add support for Win32 array parameters by @kennykerr in https://github.com/microsoft/windows-rs/pull/1562
IDispatch declarations by @kennykerr in https://github.com/microsoft/windows-rs/pull/1568nightly warning about unused must_use by @kennykerr in https://github.com/microsoft/windows-rs/pull/1580IDispatch members by @kennykerr in https://github.com/microsoft/windows-rs/pull/1584Debug impl of HRESULT and NTSTATUS by @kennykerr in https://github.com/microsoft/windows-rs/pull/1590Full Changelog: https://github.com/microsoft/windows-rs/compare/0.33.0...0.34.0
Add first-class types for PCSTR and PCWSTR by @kennykerr in https://github.com/microsoft/windows-rs/pull/1550
PCSTR and PCWSTR by @kennykerr in https://github.com/microsoft/windows-rs/pull/1550&self for COM interface traits by @kennykerr in https://github.com/microsoft/windows-rs/pull/1511windows-sys by @kennykerr in https://github.com/microsoft/windows-rs/pull/1508UnsafeCell by @kennykerr in https://github.com/microsoft/windows-rs/pull/1517aarch64 import lib and add tests by @riverar in https://github.com/microsoft/windows-rs/pull/1531NTSTATUS::ok a const fn by @roblabla in https://github.com/microsoft/windows-rs/pull/1542metadata crate by @kennykerr in https://github.com/microsoft/windows-rs/pull/1544Weak by @kennykerr in https://github.com/microsoft/windows-rs/pull/1548null_mut in samples by @kennykerr in https://github.com/microsoft/windows-rs/pull/1558Full Changelog: https://github.com/microsoft/windows-rs/compare/0.32.0...0.33.0
Use correct lib for internal bindings by @kennykerr in https://github.com/microsoft/windows-rs/pull/1432
PartialEq and Eq for scoped enums to support constant patterns by @kennykerr in https://github.com/microsoft/windows-rs/pull/1438implement macro by @kennykerr in https://github.com/microsoft/windows-rs/pull/1450Send by @kennykerr in https://github.com/microsoft/windows-rs/pull/1458const by @kennykerr in https://github.com/microsoft/windows-rs/pull/1468const by @kennykerr in https://github.com/microsoft/windows-rs/pull/1470Debug traits by @kennykerr in https://github.com/microsoft/windows-rs/pull/1473windows-implement crate refactor by @kennykerr in https://github.com/microsoft/windows-rs/pull/1489Full Changelog: https://github.com/microsoft/windows-rs/compare/0.30.0...0.32.0
Nothing published for this version
Implement Debug trait for windows crate by @kennykerr in https://github.com/microsoft/windows-rs/pull/1395
Debug trait for windows crate by @kennykerr in https://github.com/microsoft/windows-rs/pull/1395windows crate by @kennykerr in https://github.com/microsoft/windows-rs/pull/1423Full Changelog: https://github.com/microsoft/windows-rs/compare/0.29.0...0.30.0
Feature and doc generation for windows-sys (1381)
windows-sys (1381)windows-bindgen for simpler code generation (1379)Option (1344)Prefer type aliases for the windows-sys crate (1331)
Introduce windows-sys crate (1310) - here's a comparison
windows-sys crate (1310) - here's a comparisonconst representation for GUIDs (1306)std and alloc improvements (1309)runtime to core to make room for the windows-sys crate (1311)Nothing published for this version
One column per quarter.