NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
crates.io, #57 most downloaded on crates.io
Import lib for Windows
Latest stable
0.53.1
Last release 1 years ago
06 Oct 2025
Release timing varies
gaps range from 1 weeks to 9 months
Most releases are documented
notes for 23 of 36 stable releases
1 version withdrawn
withdrawn after publishing
5 years old
37 releases · first in 2021
Drag across the ruler to compare, or tap a release to open it.
Nothing published for this version
As requested, this release updates the Windows family of crates. Notably:
As requested, this release updates the Windows family of crates. Notably:
windows-sys crate won't be updated at this time.windows-version crate is unchanged.windows-targets crates.windows-result (#2847) crate and provides efficient Windows error handling and propagation with support for Win32, COM, WinRT, and NT APIs.windows-registry (#2848) crate and provides simple, safe, and efficient access to the Windows registry.VARIANT and PROPVARIANT support has been added to the windows-core crate (#2786), making it a lot easier to work with Shell and OLE APIs.GetTrustLevel return value by @kennykerr in https://github.com/microsoft/windows-rs/pull/2714invalid_mut when writer.std by @ChrisDenton in https://github.com/microsoft/windows-rs/pull/2727windows crate to 1.62 by @kennykerr in https://github.com/microsoft/windows-rs/pull/2730windows::core::Error::from_win32() by @Enyium in https://github.com/microsoft/windows-rs/pull/2733unused_qualifications by @kennykerr in https://github.com/microsoft/windows-rs/pull/2743HSTRING::len documentation by @kennykerr in https://github.com/microsoft/windows-rs/pull/2749Copy, Clone, Default for enums by @kennykerr in https://github.com/microsoft/windows-rs/pull/2760matches function safe by @kennykerr in https://github.com/microsoft/windows-rs/pull/2761Option for propagation by @kennykerr in https://github.com/microsoft/windows-rs/pull/2766From<T> and From<&T> for interface hierarchies by @kennykerr in https://github.com/microsoft/windows-rs/pull/2779char type by @kennykerr in https://github.com/microsoft/windows-rs/pull/2781VARIANT and PROPVARIANT support by @kennykerr in https://github.com/microsoft/windows-rs/pull/2786VT_UNKNOWN support for VARIANT and PROPVARIANT by @kennykerr in https://github.com/microsoft/windows-rs/pull/2788VARIANT support by @kennykerr in https://github.com/microsoft/windows-rs/pull/2789ExecQuery and ExecMethod by @kennykerr in https://github.com/microsoft/windows-rs/pull/2794AssociatedEnum attribute to input parameters by @kennykerr in https://github.com/microsoft/windows-rs/pull/2797missing_docs by @kennykerr in https://github.com/microsoft/windows-rs/pull/2799Windows.Win32.UI.Shell.Common in the windows-sys crate by @kennykerr in https://github.com/microsoft/windows-rs/pull/2804const functions across string types by @kennykerr in https://github.com/microsoft/windows-rs/pull/2810windows-sys crate by @kennykerr in https://github.com/microsoft/windows-rs/pull/2818std::io::Error by @kennykerr in https://github.com/microsoft/windows-rs/pull/2840HRESULT ergonomics by @kennykerr in https://github.com/microsoft/windows-rs/pull/2843windows-result crate by @kennykerr in https://github.com/microsoft/windows-rs/pull/2847windows-registry crate by @kennykerr in https://github.com/microsoft/windows-rs/pull/2848TryFromIntError to ERROR_INVALID_DATA in windows-result by @kennykerr in https://github.com/microsoft/windows-rs/pull/2851windows-result crate split by @tim-weis in https://github.com/microsoft/windows-rs/pull/2853HRESULT constant literal generation by @kennykerr in https://github.com/microsoft/windows-rs/pull/2857NTSTATUS constant literal generation by @kennykerr in https://github.com/microsoft/windows-rs/pull/2860NTSTATUS message formatting support to the windows-result crate by @kennykerr in https://github.com/microsoft/windows-rs/pull/2861Full Changelog: https://github.com/microsoft/windows-rs/compare/0.52.0...0.53.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
Nothing published for this version
Nothing published for this version
Nothing published for this version
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
As discussed in https://github.com/microsoft/windows-rs/pull/2613, this update bumps windows-targets to 0.48.5 and will be the final release to suppor
As discussed in https://github.com/microsoft/windows-rs/pull/2613, this update bumps windows-targets to 0.48.5 and will be the final release to support 1.48.
I will then switch everything in windows-rs to use edition 2021 and MSRV 1.56.
Full Changelog: https://github.com/microsoft/windows-rs/compare/0.48.4...0.48.5
A user reported issues with using Rust 1.48 with windows-targets. It is quite difficult to validate as that is such an old version of Rust, but this t
A user reported issues with using Rust 1.48 with windows-targets. It is quite difficult to validate as that is such an old version of Rust, but this tweak should address the compatibility concern.
This just flips windows-targets and the arch-specific crates to use Rust edition 2018.
Full Changelog: https://github.com/microsoft/windows-rs/compare/0.51.1...0.48.4
Nothing published for this version
Nothing published for this version
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 (#2397; https://github.com/microsoft/win32metadata/issues/1507). This release provides an update
As a reminder, updates are only published by request (#2397; https://github.com/microsoft/win32metadata/issues/1507). This release provides an update to the windows crate. It does not include an update to the windows-sys crate.
This update adds support for standalone code generation (#2396) as well as requested fixes to the Win32 metadata that prevented some APIs from being used.
rustdoc regression by @kennykerr in https://github.com/microsoft/windows-rs/pull/2381const parameter metadata by @kennykerr in https://github.com/microsoft/windows-rs/pull/2384windows-targets and windows-bindgen by @kennykerr in https://github.com/microsoft/windows-rs/pull/2399Full Changelog: https://github.com/microsoft/windows-rs/compare/0.46.0...0.47.0
Nothing published for this version
Nothing published for this version
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 addressing a number of issues mostly originating from the underlying win32 metadata which have now been resolved.
This is a minor service release addressing a number of issues mostly originating from the underlying win32 metadata which have now been resolved.
This release does not include an update to the windows-sys crate, which remains stable and unchanged.
windows-sys by @kennykerr in https://github.com/microsoft/windows-rs/pull/2043core module of the windows crate by @ridwanabdillahi in https://github.com/microsoft/windows-rs/pull/2023Vtable support from Interface trait by @kennykerr in https://github.com/microsoft/windows-rs/pull/2051HSTRING to conform to Rust's aliasing rules by @ChrisDenton in https://github.com/microsoft/windows-rs/pull/2057Full Changelog: https://github.com/microsoft/windows-rs/compare/0.40.0...0.41.0
This release includes a rollup of fixes and improvements to the Win32 metadata and many small fixes to the Rust bindings themselves. Notably, fixed-si
This release includes a rollup of fixes and improvements to the Win32 metadata and many small fixes to the Rust bindings themselves. Notably, fixed-size array parameters, APIs with non-system calling conventions such as cdecl, reproducible builds, and far more accurate import libs.
This release does not include an update to the windows-sys crate, which remains stable and unchanged.
strlen usage in metadata library with safe Rust by @Swatinem in https://github.com/microsoft/windows-rs/pull/1926windows-sys crate by @kennykerr in https://github.com/microsoft/windows-rs/pull/1935implement and interface crates by @kennykerr in https://github.com/microsoft/windows-rs/pull/1931rust-version for windows-interface crate by @kennykerr in https://github.com/microsoft/windows-rs/pull/1930SetWindowLongPtrA and GetWindowLongPtrA by @kennykerr in https://github.com/microsoft/windows-rs/pull/1932&T to *const T for Win32 input parameters by @kennykerr in https://github.com/microsoft/windows-rs/pull/1939windows::core by @kennykerr in https://github.com/microsoft/windows-rs/pull/1943aarch64-pc-windows-gnullvm and x86_64-pc-windows-gnullvm targets by @mati865 in https://github.com/microsoft/windows-rs/pull/1883Debug for AgileReference by @kennykerr in https://github.com/microsoft/windows-rs/pull/1986windows-sys to 1.49 by @kennykerr in https://github.com/microsoft/windows-rs/pull/1987no_std support by @kennykerr in https://github.com/microsoft/windows-rs/pull/1992windows::core internals by @kennykerr in https://github.com/microsoft/windows-rs/pull/1993bindgen options by @kennykerr in https://github.com/microsoft/windows-rs/pull/1994BOOL, BOOLEAN, and NTSTATUS extensions rather than replacements by @kennykerr in https://github.com/microsoft/windows-rs/pull/1995MAKEINTRESOURCE style constants by @kennykerr in https://github.com/microsoft/windows-rs/pull/2007BSTR a core string type by @kennykerr in https://github.com/microsoft/windows-rs/pull/2006unsafe helpers to cast from C++ or raw IUnknown pointers to Rust IUnknown values by @kennykerr in https://github.com/microsoft/windows-rs/pull/2010Full Changelog: https://github.com/microsoft/windows-rs/compare/0.39.0...0.40.0
This release includes improves to string handling and parameter passing to both improve performance and simplify the way arguments are bound to API ca
This release includes improves to string handling and parameter passing to both improve performance and simplify the way arguments are bound to API calls.
Notably, the "alloc" feature has been removed. This feature allowed string literals to be implicitly converted to null terminated strings required by some Windows APIs. While convenient, it was rather complicated and expensive at runtime. Instead, the explicit s! and w! macros are now provided to create null terminated UTF-8 and UTF-16 string literals at compile time.
This release does not include an update to the windows-sys crate, which remains stable and unchanged.
Eq and PartialEq for NTSTATUS by @kennykerr in https://github.com/microsoft/windows-rs/pull/1869derive macros by @kennykerr in https://github.com/microsoft/windows-rs/pull/1870tool_lib crate to hold some of the common support for the windows-rs tools by @kennykerr in https://github.com/microsoft/windows-rs/pull/1876where clauses in codegen by @rylev in https://github.com/microsoft/windows-rs/pull/1893transmute for binding primitive argument types by @kennykerr in https://github.com/microsoft/windows-rs/pull/1907transmute for direct return values where no translation occurs by @kennykerr in https://github.com/microsoft/windows-rs/pull/1911transmute for WinRT arrays by @kennykerr in https://github.com/microsoft/windows-rs/pull/1914Display impl for HSTRING is infallible by @kennykerr in https://github.com/microsoft/windows-rs/pull/1915Decode helper in a few more places by @kennykerr in https://github.com/microsoft/windows-rs/pull/1918Full Changelog: https://github.com/microsoft/windows-rs/compare/0.38.0...0.39.0
This release includes a host of small improvements and fixes to the windows crate. Notably, the windows-bindgen and windows-metadata crates have been
This release includes a host of small improvements and fixes to the windows crate. Notably, the windows-bindgen and windows-metadata crates have been rewritten to avoid the static winmd cache in favor of a stateful metadata reader that allows multiple instances to be used independently (#1777).
This release does not include an update to the windows-sys crate, which remains stable and unchanged.
RawPtr type alias by @kennykerr in https://github.com/microsoft/windows-rs/pull/1791Reader to Tree construction by @kennykerr in https://github.com/microsoft/windows-rs/pull/1797flatten comment by @kennykerr in https://github.com/microsoft/windows-rs/pull/1801Type methods simpler to use by @kennykerr in https://github.com/microsoft/windows-rs/pull/1806windows::core::Error to std::io::Error by @kennykerr in https://github.com/microsoft/windows-rs/pull/1809Borrowed<'a, T> RFC by @rylev in https://github.com/microsoft/windows-rs/pull/1788Cfg by @kennykerr in https://github.com/microsoft/windows-rs/pull/1812FactoryCache by @kennykerr in https://github.com/microsoft/windows-rs/pull/1829windows crate by @kennykerr in https://github.com/microsoft/windows-rs/pull/1836cfg dependencies for types with generic interface type dependencies by @kennykerr in https://github.com/microsoft/windows-rs/pull/1832component helper function to simplify component development by @kennykerr in https://github.com/microsoft/windows-rs/pull/1840Full Changelog: https://github.com/microsoft/windows-rs/compare/0.37.0...0.38.0
This release includes a host of small improvements and fixes to the windows crate. Notably, changes to the implement and interface macros improve inte
This release includes a host of small improvements and fixes to the windows crate. Notably, changes to the implement and interface macros improve interoperability, correctness, and safety for COM and WinRT implementations.
This release does not include an update to the windows-sys crate, which remains stable and unchanged.
IntoParam by @AronParker in https://github.com/microsoft/windows-rs/pull/1713compose offset in implement macro by @kennykerr in https://github.com/microsoft/windows-rs/pull/1724IUnknown Unsafe Annotations by @rylev in https://github.com/microsoft/windows-rs/pull/1734Interface trait by @rylev in https://github.com/microsoft/windows-rs/pull/1738HSTRING compatibility testing by @kennykerr in https://github.com/microsoft/windows-rs/pull/1749core::ptr::write for out params by @rylev in https://github.com/microsoft/windows-rs/pull/1750ToImpl by @rylev in https://github.com/microsoft/windows-rs/pull/1748HSTRING::clear into the Drop impl by @rylev in https://github.com/microsoft/windows-rs/pull/1752cast method produced by implement macro unsafe by @rylev in https://github.com/microsoft/windows-rs/pull/1753Full Changelog: https://github.com/microsoft/windows-rs/compare/0.36.1...0.37.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)no_std support by default (use the std feature to enable use of the standard library)
no_std support by default (use the std feature to enable use of the standard library)Nothing published for this version
Nothing published for this version
Nothing published for this version
One column per quarter.