NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
crates.io
crates.io, #4558 most downloaded on crates.io
Code generator for Windows metadata
Latest stable
0.100.0
Last release 2 months ago
03 Sep 2026
Release timing varies
gaps range from 1 weeks to 8 months
Most releases are documented
notes for 31 of 40 stable releases
1 version withdrawn
withdrawn after publishing
5 years old
41 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
Nothing published for this version
Nothing published for this version
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Nothing published for this version
The windows-core crate is largely unchanged but required some breaking changes to support windows-bindgen type system improvements.
The windows-collections crate defines the Windows collection types like IIterable<T>, IVector<T>, IMap<K, V>, and so on (#3483). It also includes all of the stock implementations for creating such collections (#2346, #2350, #2353). This allows these collections to be used without requiring a dependency on the larger windows crate. This crate also provides an optimized implementation of the standard Iterator trait for the Windows IIterator<T> interface (#3476).
The windows-future crate defines the Windows async types like IAsyncAction, IAsyncOperation<T>, and so on (#3490). It also includes all of the stock implementations for creating such async types (#3221, #3235). This allows these async types to be used without requiring a dependency on the larger windows crate.
The windows-link crate provides linker support for Windows (#3450). This is the evolution of the older windows-targets crate but is substantially simpler and more versatile thanks to advances in the Rust compiler since the windows-targets crate was unveiled. Notably, it does not depend on or insert any import libs and can be used with custom libraries, not only those provided by the Windows operating system. All of the crates, with the exception of windows-sys, now depend on the new windows-link crate instead of the older windows-targets crate. This greatly simplifies compilation and also greatly reduces the size of dependencies as the windows-link crate is tiny. The windows-bindgen crate defaults to windows-link but also adds the --link option to override this as needed. You may for example want to use --link windows_targets if you need to stick with the windows-targets crate if you cannot change your MSRV to Rust 1.71 or later as that was the first version to stabilize raw-dylib for all Windows targets. This then lets you continue to use windows-bindgen until you are ready to move to a newer version of Rust.
The windows-numerics crate defines the Windows numeric types to support graphics-oriented math APIs and calculations (#3488). It also also includes all of the stock implementations for overloaded operators and other transformations. This allows these numeric types to be used without requiring a dependency on the larger windows crate.
The windows-bindgen crate provides a number of improvements including new diagnostics (#3498), streamlined and more capable reference support (#3497, #3492), hardened method overloading (#3477), far fewer transmute calls, as well as many other critical fixes and improvements.
The windows-core crate is largely unchanged but required some breaking changes to support windows-bindgen type system improvements.
The windows-registry crate continues to improve with generalized support for access rights (#3482), open options (#3461), and other minor improvements.
The windows crate now delegates to the windows-numerics, windows-future, and windows-collections crates for those types, as well as a number of critical fixes and improvements to features and cfg guards (#3431), and many other small improvements.
The windows-result now includes the BOOL type (#3441) as a core type. This allows this ubiquitous type to be used without requiring a dependency on the larger windows crate.
The windows-strings crate now depends on the new windows-link crate instead of the older windows-targets crate.
The windows-version crate now depends on the new windows-link crate instead of the older windows-targets crate.
The cppwinrt crate includes minor improvements to improve build reliability.
track_caller in more places by @kennykerr in https://github.com/microsoft/windows-rs/pull/3424set_string to differ by @kerosina in https://github.com/microsoft/windows-rs/pull/3412windows-bindgen caching by @kennykerr in https://github.com/microsoft/windows-rs/pull/3427cfg writer by @kennykerr in https://github.com/microsoft/windows-rs/pull/3430cfg generation by @kennykerr in https://github.com/microsoft/windows-rs/pull/3431Ref unused lifetime type parameter by @kennykerr in https://github.com/microsoft/windows-rs/pull/3433Ref for generic type parameters by @kennykerr in https://github.com/microsoft/windows-rs/pull/3435cfg to Send and Sync implementations by @kennykerr in https://github.com/microsoft/windows-rs/pull/3438BOOL a core type by @kennykerr in https://github.com/microsoft/windows-rs/pull/3441EventRegistrationToken by @kennykerr in https://github.com/microsoft/windows-rs/pull/3445Ref and OutRef for C++ delegates by @kennykerr in https://github.com/microsoft/windows-rs/pull/3447Ref lifetime type parameter by @kennykerr in https://github.com/microsoft/windows-rs/pull/3448windows-link crate by @kennykerr in https://github.com/microsoft/windows-rs/pull/3450cppwinrt temp file by @kennykerr in https://github.com/microsoft/windows-rs/pull/3455windows-bindgen and reduce transmute count by @kennykerr in https://github.com/microsoft/windows-rs/pull/3454windows-bindgen by @kennykerr in https://github.com/microsoft/windows-rs/pull/3456OpenOptions to windows-registry by @kennykerr in https://github.com/microsoft/windows-rs/pull/3461windows-link to the windows-rs readme by @kennykerr in https://github.com/microsoft/windows-rs/pull/3462no_std by @kennykerr in https://github.com/microsoft/windows-rs/pull/3469Iterator for IIterator<T> by @kennykerr in https://github.com/microsoft/windows-rs/pull/3476windows-registry by @kennykerr in https://github.com/microsoft/windows-rs/pull/3482MethodDef constructor parent resolution by @kennykerr in https://github.com/microsoft/windows-rs/pull/3484windows-collections crate by @kennykerr in https://github.com/microsoft/windows-rs/pull/3483windows-numerics crate by @kennykerr in https://github.com/microsoft/windows-rs/pull/3488windows-future crate by @kennykerr in https://github.com/microsoft/windows-rs/pull/3490windows-bindgen reference usability and default reference support by @kennykerr in https://github.com/microsoft/windows-rs/pull/3492bindgen by @kennykerr in https://github.com/microsoft/windows-rs/pull/3496windows-bindgen by @kennykerr in https://github.com/microsoft/windows-rs/pull/3497windows-bindgen to improve diagnostics by @kennykerr in https://github.com/microsoft/windows-rs/pull/3498Full Changelog: https://github.com/microsoft/windows-rs/compare/0.61.0...0.62.0
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
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
It includes major updates to the following crates, mainly due to breaking changes in metadata for API definitions.
This release includes updates to metadata for new or fixed API definitions (#3111, #3136), various improvements and fixes to code generation, compliance with new Rust warnings, additional COM authoring support improvements (#3065), limited non-Windows support (#3135), and more.
It includes major updates to the following crates, mainly due to breaking changes in metadata for API definitions.
riddle 0.58.0windows 0.58.0windows-bindgen 0.58.0windows-core 0.58.0windows-implement 0.58.0windows-interface 0.58.0windows-metadata 0.58.0It also includes major updates to the following utility crates.
windows-result 0.2.0windows-registry 0.2.0The windows-result crate now provides limited non-Windows support, and the windows-registry crate offers new lossless queries for binary and wide string values.
And it includes minor updates to the windows-targets crates, with the addition of several new APIs.
windows-targets 0.52.6This release also includes the first published version of the windows-strings crate, moving the string types from the windows-core crate into a dedicated crate as a smaller dependency. It also offers an efficient HSTRING builder (#3133).
To clarify, the only crates that continue to support limited non-Windows builds are:
windows-bindgen and windows-metadata for code generation on non-Windows platforms.windows-core and windows-result for COM support on non-Windows platforms.rustfmt for repo by @kennykerr in https://github.com/microsoft/windows-rs/pull/3084windows-bindgen directly by @kennykerr in https://github.com/microsoft/windows-rs/pull/3086windows-result to work on non-Windows platforms by @sivadeilra in https://github.com/microsoft/windows-rs/pull/3082Debug derive macro does not need to be qualified by @kennykerr in https://github.com/microsoft/windows-rs/pull/3097unused to deal with new warning about "unused" private fields in structs by @kennykerr in https://github.com/microsoft/windows-rs/pull/3103mio dependency by @kennykerr in https://github.com/microsoft/windows-rs/pull/3107windows crate works by @sivadeilra in https://github.com/microsoft/windows-rs/pull/3110cargo run ... by @sivadeilra in https://github.com/microsoft/windows-rs/pull/3113windows and windows-sys in unit test mode by @sivadeilra in https://github.com/microsoft/windows-rs/pull/3112windows-strings crate by @kennykerr in https://github.com/microsoft/windows-rs/pull/3125windows-core internals by @kennykerr in https://github.com/microsoft/windows-rs/pull/3129windows-bindgen by @kennykerr in https://github.com/microsoft/windows-rs/pull/3130Error and Result<()> to be the same size as HRESULT by @sivadeilra in https://github.com/microsoft/windows-rs/pull/3126windows-core crate by @kennykerr in https://github.com/microsoft/windows-rs/pull/3131windows_slim_errors by @kennykerr in https://github.com/microsoft/windows-rs/pull/3132HSTRING builder and registry support by @kennykerr in https://github.com/microsoft/windows-rs/pull/3133Send and Sync for Weak<T> by @kennykerr in https://github.com/microsoft/windows-rs/pull/3138Future implementation by @kennykerr in https://github.com/microsoft/windows-rs/pull/3142HSTRING builder provides initialized memory by @kennykerr in https://github.com/microsoft/windows-rs/pull/3141windows-strings crate Windows-only by @kennykerr in https://github.com/microsoft/windows-rs/pull/3143Full Changelog: https://github.com/microsoft/windows-rs/compare/0.57.0...0.58.0
This release includes updates to a number of crates.
This release includes updates to a number of crates.
It includes major updates to the following:
riddle 0.57.0windows 0.57.0windows-bindgen 0.57.0windows-core 0.57.0windows-implement 0.57.0windows-interface 0.57.0windows-metadata 0.57.0It also includes minor updates to the following:
windows-result 0.1.2windows-registry 0.1.2This includes various improvements and fixes to code generation, compliance with new Rust warnings, COM authoring support helpers, and more.
This release also includes the first published version of the cppwinrt crate.
as_raw to windows-registry by @kennykerr in https://github.com/microsoft/windows-rs/pull/3003E_POINTER constant in windows-core by @kennykerr in https://github.com/microsoft/windows-rs/pull/3008Copy, Clone, and Debug for handles by @kennykerr in https://github.com/microsoft/windows-rs/pull/3015HSTRING interior mutability warnings in nightly by @riverar in https://github.com/microsoft/windows-rs/pull/3021unexpected_cfgs warnings by @kennykerr in https://github.com/microsoft/windows-rs/pull/3022Ref and OutRef to enhance COM authoring support by @kennykerr in https://github.com/microsoft/windows-rs/pull/3025Ref interface parameters by @kennykerr in https://github.com/microsoft/windows-rs/pull/3027from_raw to windows-registry by @kennykerr in https://github.com/microsoft/windows-rs/pull/3034windows-registry readme by @kennykerr in https://github.com/microsoft/windows-rs/pull/3035windows-metadata and windows-bindgen by @kennykerr in https://github.com/microsoft/windows-rs/pull/3039TypeName to support pattern matching by @kennykerr in https://github.com/microsoft/windows-rs/pull/3040ComObject<T> type that represents a heap-allocated COM object by @sivadeilra in https://github.com/microsoft/windows-rs/pull/3043unexpected_cfgs by @ChrisDenton in https://github.com/microsoft/windows-rs/pull/3050no-default-features yml workflow by @kennykerr in https://github.com/microsoft/windows-rs/pull/3053windows-registry value iterator by @kennykerr in https://github.com/microsoft/windows-rs/pull/3052windows-2022 hosted runners by @kennykerr in https://github.com/microsoft/windows-rs/pull/3056cppwinrt crate and sample by @kennykerr in https://github.com/microsoft/windows-rs/pull/3054IInspectable implementation by @kennykerr in https://github.com/microsoft/windows-rs/pull/3057unused_qualifications entirely by @kennykerr in https://github.com/microsoft/windows-rs/pull/3078IUnknown identity checks by @sivadeilra in https://github.com/microsoft/windows-rs/pull/3073noexcept support by @kennykerr in https://github.com/microsoft/windows-rs/pull/3070Full Changelog: https://github.com/microsoft/windows-rs/compare/0.56.0...0.57.0
This release includes updates to all crates except windows-sys.
This release includes updates to all crates except windows-sys.
It includes major updates to the following:
riddle 0.56.0windows 0.56.0windows-bindgen 0.56.0windows-core 0.56.0windows-implement 0.56.0windows-interface 0.56.0windows-metadata 0.56.0This includes various improvements and fixes to code generation, compliance with new Rust warnings, Arm64EC bindings, as well as ergonomic improvements. The riddle crate in particular now matches the version of windows-bindgen as they are inextricably linked.
It includes minor updates to the following:
windows-targets 0.52.5windows-result 0.1.1windows-registry 0.1.1windows-version 0.1.1The windows-targets crate adds support for arm64ec-pc-windows-msvc and i686-pc-windows-gnullvm. The other crates only update dependencies.
windows crate dependency in implement and interface macros by @kennykerr in https://github.com/microsoft/windows-rs/pull/2917Param trait by @kennykerr in https://github.com/microsoft/windows-rs/pull/2938windows-core to generate its own bindings by @kennykerr in https://github.com/microsoft/windows-rs/pull/2941windows-targets readme by @kennykerr in https://github.com/microsoft/windows-rs/pull/2962cfg union calculation by @kennykerr in https://github.com/microsoft/windows-rs/pull/2965Deref for COM interface hierarchies in windows-bindgen by @kennykerr in https://github.com/microsoft/windows-rs/pull/2968Deref for COM interface hierarchies defined with the interface macro by @kennykerr in https://github.com/microsoft/windows-rs/pull/2969interface macro by @kennykerr in https://github.com/microsoft/windows-rs/pull/2976Interface::IID by @kennykerr in https://github.com/microsoft/windows-rs/pull/2990Full Changelog: https://github.com/microsoft/windows-rs/compare/0.55.0...0.56.0
This update includes a few improvements to code generation. The following crates are being updated today:
This update includes a few improvements to code generation. The following crates are being updated today:
windows-bindgenwindows-metadatawindows-coreimplement macro docs by @daladim in https://github.com/microsoft/windows-rs/pull/2891windows-targets to 1.56 by @kennykerr in https://github.com/microsoft/windows-rs/pull/2898PWSTR/PSTR to be passed to PCWSTR/PCSTR parameters by @kennykerr in https://github.com/microsoft/windows-rs/pull/2899windows-bindgen comment in generated code by @kennykerr in https://github.com/microsoft/windows-rs/pull/2910interface and com_interface macros by @kennykerr in https://github.com/microsoft/windows-rs/pull/2914Full Changelog: https://github.com/microsoft/windows-rs/compare/0.54.0...0.55.0
This update includes a few improvements to error propagation and expanded VARIANT support.
This update includes a few improvements to error propagation and expanded VARIANT support.
LocalFree behavior by @kennykerr in https://github.com/microsoft/windows-rs/pull/2889Result transformation for WIN32_ERROR by @kennykerr in https://github.com/microsoft/windows-rs/pull/2890VARIANT types by @kennykerr in https://github.com/microsoft/windows-rs/pull/2892Full Changelog: https://github.com/microsoft/windows-rs/compare/0.53.0...0.54.0
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
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
Those are major breaking changes.
This is mainly for publishing an update of the windows-bindgen crate but also fixes a few minor readme and version issues to avoid confusion.
windows and windows-core crates are updated to 0.51.1 to update the readme but are otherwise unchanged.windows-targets crate and arch-specific crates are updated to 0.48.3 to update the readme and bring the lib file names in line with the crate version.Those are all semver-compatible updates.
windows-bindgen crate is updated to 0.51.1 and includes the new riddle-based metadata processing capabilities and is compatible with the windows and windows-core crates.windows-metadata crate is updated to 0.51.1 and includes many refinements but is largely for internal use.Those are major breaking changes.
The windows-sys crate will not be updated at this time.
riddle available as a library by @kennykerr in https://github.com/microsoft/windows-rs/pull/2609windows-bindgen for std usage by @kennykerr in https://github.com/microsoft/windows-rs/pull/2610Full Changelog: https://github.com/microsoft/windows-rs/compare/0.51.0...0.51.1
An update to the windows-bindgen and windows-metadata crates, as requested in https://github.com/rust-lang/rust/pull/110152#issuecomment-1510991514.
An update to the windows-bindgen and windows-metadata crates, as requested in https://github.com/rust-lang/rust/pull/110152#issuecomment-1510991514.
Other crates will not be updated at this time.
raw-dylib testing by @kennykerr in https://github.com/microsoft/windows-rs/pull/2433link_name support to the windows-targets crate by @kennykerr in https://github.com/microsoft/windows-rs/pull/2440link_name generation in standalone code generation by @kennykerr in https://github.com/microsoft/windows-rs/pull/2450Full Changelog: https://github.com/microsoft/windows-rs/compare/0.48.0...0.49.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 (#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
As a reminder, updates are only published by request (https://github.com/microsoft/windows-rs/pull/2380). This release provides an update to the windo
As a reminder, updates are only published by request (https://github.com/microsoft/windows-rs/pull/2380). This release provides an update to the windows crate. It does not include an update to the windows-sys crate.
This is the first update to the windows crate in about 2 months and includes numerous improvements as well as updated API definitions via the Win32 metadata. Notably, the windows crate now sports streamlined and much simpler type traits (#2343) and parameter bindings (#2360). It includes the first steps towards WDK support (#2358), and it finally includes stock collection implementations (#91).
Please note that the ComInterface trait is now required to call the cast function (#2360).
windows crate by @kennykerr in https://github.com/microsoft/windows-rs/pull/2318raw-dylib testing with nightly-i686-pc-windows-gnu by @kennykerr in https://github.com/microsoft/windows-rs/pull/2312contains method for enum flags by @kennykerr in https://github.com/microsoft/windows-rs/pull/2323riddle syntax parsing and testing by @kennykerr in https://github.com/microsoft/windows-rs/pull/2324Reader::attribute_args enhancements by @ChrisDenton in https://github.com/microsoft/windows-rs/pull/2329windows-bindgen crate by @kennykerr in https://github.com/microsoft/windows-rs/pull/2339windows::core type traits by @kennykerr in https://github.com/microsoft/windows-rs/pull/2343IIterable by @kennykerr in https://github.com/microsoft/windows-rs/pull/2346Windows.Win32.Web.MsHtml by @kennykerr in https://github.com/microsoft/windows-rs/pull/2348IInspectable extensions from windows::core to windows::Foundation by @kennykerr in https://github.com/microsoft/windows-rs/pull/2349IVectorView by @kennykerr in https://github.com/microsoft/windows-rs/pull/2350IMapView by @kennykerr in https://github.com/microsoft/windows-rs/pull/2353ManuallyDrop by @kennykerr in https://github.com/microsoft/windows-rs/pull/2361Array usage with non-WinRT types by @kennykerr in https://github.com/microsoft/windows-rs/pull/2362prettyplease dependency by @kennykerr in https://github.com/microsoft/windows-rs/pull/2367BSTR by @kennykerr in https://github.com/microsoft/windows-rs/pull/2372windows::core docs by @kennykerr in https://github.com/microsoft/windows-rs/pull/2376CHAR to u8 by @kennykerr in https://github.com/microsoft/windows-rs/pull/2378Full Changelog: https://github.com/microsoft/windows-rs/compare/0.44.0...0.46.0
Remove deprecated WinRT namespaces by @kennykerr in https://github.com/microsoft/windows-rs/pull/2165
As a reminder, updates are only published by request (#2279). This release does not include an update to the windows-sys crate, which remains stable and unchanged.
This is the first update to the windows crate in 3 months. As such, there are quite a few improvements and fixes. Some notable changes to take a look at:
raw-dylib (#2164) - thanks @dpaoliello!windows-targets crate that simplifies taking a dependency on the Windows libs (#2158)D3DMATRIX to Matrix4x4 by @kennykerr in https://github.com/microsoft/windows-rs/pull/2130DEVMODEA/DEVMODEW struct sizes are correct by @kennykerr in https://github.com/microsoft/windows-rs/pull/2139link macro to provide an abstraction over the Rust link attribute by @kennykerr in https://github.com/microsoft/windows-rs/pull/2152windows-targets crate to simplify lib dependency management by @kennykerr in https://github.com/microsoft/windows-rs/pull/2158raw-dylib by @kennykerr in https://github.com/microsoft/windows-rs/pull/2164windows-sys by @kennykerr in https://github.com/microsoft/windows-rs/pull/2173windows-sys crate by @kennykerr in https://github.com/microsoft/windows-rs/pull/2194verbatim modifier is now stable by @kennykerr in https://github.com/microsoft/windows-rs/pull/2199VARIANT_BOOL by @aquacash5 in https://github.com/microsoft/windows-rs/pull/2206.dll suffix from non-Windows link import file names by @kennykerr in https://github.com/microsoft/windows-rs/pull/2216clippy warning uninlined_format_args by @kaivol in https://github.com/microsoft/windows-rs/pull/2224const parameters through pointers by @kennykerr in https://github.com/microsoft/windows-rs/pull/2227HRESULT's ok method by @kennykerr in https://github.com/microsoft/windows-rs/pull/2228debugger_visualizer test if option is not enabled by @kennykerr in https://github.com/microsoft/windows-rs/pull/2230link docs by @kennykerr in https://github.com/microsoft/windows-rs/pull/2238PCWSTR conversion by @kennykerr in https://github.com/microsoft/windows-rs/pull/2239interface and implement features by @kennykerr in https://github.com/microsoft/windows-rs/pull/2240doc comment for GUID constants by @kennykerr in https://github.com/microsoft/windows-rs/pull/2268DEVMODEA/DEVMODEW structs by @kennykerr in https://github.com/microsoft/windows-rs/pull/2271Full Changelog: https://github.com/microsoft/windows-rs/compare/0.43.0...0.44.0
String constants now preserve their original encoding as either UTF-8 or UTF-16 null-terminated string constants. This makes many string constants dir
String constants now preserve their original encoding as either UTF-8 or UTF-16 null-terminated string constants. This makes many string constants directly and efficiently usable as constants to pass to various Windows APIs that expect either "ansi" or wide null-terminated string literals. This update also provides a collection of small improvements, particularly to string handling. Updated Win32 metadata provides fixes to various API definitions.
This release does not include an update to the windows-sys crate, which remains stable and unchanged.
const GUID code gen across windows and windows-sys by @kennykerr in https://github.com/microsoft/windows-rs/pull/2072std consistently in the windows crate by @kennykerr in https://github.com/microsoft/windows-rs/pull/2073HSTRING by @ridwanabdillahi in https://github.com/microsoft/windows-rs/pull/2077windows::core::Error formatting by @kennykerr in https://github.com/microsoft/windows-rs/pull/2075HSTRING methods const by @kennykerr in https://github.com/microsoft/windows-rs/pull/2078macro_rules by @kennykerr in https://github.com/microsoft/windows-rs/pull/2079clippy warnings by @kaivol in https://github.com/microsoft/windows-rs/pull/2090BSTR by @rylev in https://github.com/microsoft/windows-rs/pull/2116Full Changelog: https://github.com/microsoft/windows-rs/compare/0.42.0...0.43.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 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)Nothing published for this version
One column per quarter.