This release is focused on upgrading the ecosystem to standardize on the windows-link crate for universal raw-dylib support on Windows. This avoids all kinds of build complexity and undesirable complexity in dealing with the linker directly via import libs.
To date, the only major Windows crate that still uses the older windows-targets crate for linking is the windows-sys crate. This release updates windows-sys to depend on windows-link and thus unconditionally. This is required for some internal OS and Azure scenarios. It should also meaningfully reduce build time in general since the large import lib crates no longer need to be downloaded at all.
69 - windows-rs Release Notes | AnnounceHQ
raw-dylib
windows-targets
I am also using this release as an opportunity to update all of the remaining crates to use the latest version of windows-link which itself receives a major update to finally stop overwriting the ABI (#3689), fixing a cross-target compatibility issue.
With this update, Rust for Windows no longer offers any crates that depend on the windows-targets crate. Although very stable, it will remain supported by this repo for the foreseeable future should there ever be a reason to service it. I do not however plan to provide any non-essential updates to the windows-targets crate. You should instead use the windows-link crate.
Major version updates to existing crates
The windows-bindgen crate (0.63.0) includes updated Windows metadata (#3729) and targets the latest version of the core Windows crates.
The windows-link crate (0.2.0) no longer overwrites the ABI (#3689) avoiding cross-arch incompatibility but is unfortunately a subtle breaking change.
The windows-sys crate (0.61.0) is updated to target the latest windows-link crate and thus raw-dylib (#3724).
The windows crate (0.62.0) is updated to target the latest windows-core crate and provides an API refresh for Windows metadata (#3729).
The windows-core crate (0.62.0) provides a number of improvements for compatibility and target support.
The windows-collections crate (0.3.0) is updated to target the latest windows-core crate.
The windows-future crate (0.3.0) is updated to target the latest windows-core crate and provides new join and when functions for simplifying async continuation (#3708).
The windows-numerics crate (0.3.0) is updated to target the latest windows-core crate.
The windows-registry crate (0.6.0) is updated to target the latest windows-link crate.
The windows-result crate (0.4.0) is updated to target the latest windows-link crate.
The windows-services crate (0.26.0) is updated to target the latest windows-link crate.
The windows-strings crate (0.5.0) is updated to target the latest windows-link crate.
The windows-threading crate (0.2.0) is updated to target the latest windows-link crate and sports a new pool scope for lifetime management (#3696).
Minor version updates to existing crates
The cppwinrt crate (0.3.3) is updated to target the new version of the windows-link crate.
The windows-version crate (0.1.5) is updated to target the new version of the windows-link crate.
What's Changed
Use --no-allow for internal bindings to improve static analysis coverage by @kennykerr in https://github.com/microsoft/windows-rs/pull/3686
Update Windows on Arm workflow by @riverar in https://github.com/microsoft/windows-rs/pull/3680
Stop overwriting the ABI in windows-link by @kennykerr in https://github.com/microsoft/windows-rs/pull/3689
Address most Clippy warnings in test code by @kennykerr in https://github.com/microsoft/windows-rs/pull/3691
Turn on Clippy testing for all crates and tests by @kennykerr in https://github.com/microsoft/windows-rs/pull/3692
Add specific test coverage for activation by @kennykerr in https://github.com/microsoft/windows-rs/pull/3697
Add specific test for interface macro -> Result transformation by @kennykerr in https://github.com/microsoft/windows-rs/pull/3698
Resolve from_win32 confusion from windows-result by @kennykerr in https://github.com/microsoft/windows-rs/pull/3701
The internal windows-core bindings need not be public by @kennykerr in https://github.com/microsoft/windows-rs/pull/3702
Make use of more prelude items by @kennykerr in https://github.com/microsoft/windows-rs/pull/3703
Properly locate and simplify the ArrayProxy type support ABI by @kennykerr in https://github.com/microsoft/windows-rs/pull/3704
Delegate closures should be immutable by @kennykerr in https://github.com/microsoft/windows-rs/pull/3706
Update to latest GitHub runner for Windows by @kennykerr in https://github.com/microsoft/windows-rs/pull/3709
Bump actions/checkout from 4 to 5 by @kennykerr in https://github.com/microsoft/windows-rs/pull/3712
windows-threading: Implement scope for Pool by @ChrisDenton in https://github.com/microsoft/windows-rs/pull/3696
Add specific yml job names by @kennykerr in https://github.com/microsoft/windows-rs/pull/3715
Add Debug implementation for HStringBuilder by @kennykerr in https://github.com/microsoft/windows-rs/pull/3713
Prefer expect to allow for Rust and Clippy lints by @kennykerr in https://github.com/microsoft/windows-rs/pull/3716
Adds Cargo package validation by @kennykerr in https://github.com/microsoft/windows-rs/pull/3714
Update windows-future with join and when functions by @kennykerr in https://github.com/microsoft/windows-rs/pull/3708
Apply changes for use_self Clippy lint to hand-written code by @kennykerr in https://github.com/microsoft/windows-rs/pull/3718
Add Debug implementation for Array<T> by @kennykerr in https://github.com/microsoft/windows-rs/pull/3720
Assume default readme fields in Cargo.toml by @kennykerr in https://github.com/microsoft/windows-rs/pull/3721
Remove a few unnecessary wraps - private functions that only return Ok or Some by @kennykerr in https://github.com/microsoft/windows-rs/pull/3722
Switch windows-sys to use windows-link and thus raw-dylib by @kennykerr in https://github.com/microsoft/windows-rs/pull/3724
Enforce workspace lints to all workspace crates by @kennykerr in https://github.com/microsoft/windows-rs/pull/3726
Simpler lifetime syntax to improve readability by @kennykerr in https://github.com/microsoft/windows-rs/pull/3727
Add missing unsafe on extern blocks by @kennykerr in https://github.com/microsoft/windows-rs/pull/3728
Update Windows Runtime metadata by @kennykerr in https://github.com/microsoft/windows-rs/pull/3729
Workaround for integer_to_ptr_transmutes warning by @kennykerr in https://github.com/microsoft/windows-rs/pull/3731
Simplify construction of Ref and OutRef directly by @kennykerr in https://github.com/microsoft/windows-rs/pull/3730
Add Rust for Windows book and create unified docs/web area by @riverar in https://github.com/microsoft/windows-rs/pull/3733
Add environment to web workflow by @riverar in https://github.com/microsoft/windows-rs/pull/3738
Avoid running test suite for web changes by @riverar in https://github.com/microsoft/windows-rs/pull/3739
Remove ole32.dll dependency from windows-core crate for compatibility by @kennykerr in https://github.com/microsoft/windows-rs/pull/3743
Release 69 by @kennykerr in https://github.com/microsoft/windows-rs/pull/3741
Full Changelog: https://github.com/microsoft/windows-rs/compare/68...69