KEMBAR78
Switch `windows-sys` to use `windows-link` and thus `raw-dylib` by kennykerr · Pull Request #3724 · microsoft/windows-rs · GitHub
Skip to content

Conversation

@kennykerr
Copy link
Collaborator

The windows-sys crate is the last library crate provided by windows-rs to depend on the older windows-targets crate for linking rather than its modern replacement, the windows-link crate. Some of the biggest dependents of windows-sys have since bumped their own MSRV to 1.70 so its probably time to think about moving windows-sys forward.

The windows-link crate uses raw-dylib exclusively, providing simpler linking, faster and smaller download and compilation, and requiring no dependency on pre-built import libs. raw-dylib was stabilized on Windows with Rust 1.71 so that becomes the new MSRV for the next version of the windows-sys crate.

Fixes: #3494

@kennykerr kennykerr merged commit f6eba59 into master Aug 15, 2025
29 checks passed
@kennykerr kennykerr deleted the windows-sys-link branch August 15, 2025 16:50
@unlimitedsola
Copy link

unlimitedsola commented Aug 16, 2025

This is good news and I'm excited for the upcoming release!

A friendly reminder that we should update the MSRV stated here (1.82 for windows and 1.71 for windows-sys) because it is referenced in the README.md of this project.

@kennykerr kennykerr mentioned this pull request Sep 4, 2025
will-j-wright added a commit to microsoft/openvmm that referenced this pull request Sep 8, 2025
For a closed-source change, we need the newest version of the windows
crates, specifically microsoft/windows-rs#3724
and microsoft/windows-rs#3743.
gurasinghMS pushed a commit to gurasinghMS/openvmm that referenced this pull request Sep 9, 2025
For a closed-source change, we need the newest version of the windows
crates, specifically microsoft/windows-rs#3724
and microsoft/windows-rs#3743.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow windows-targets to use the raw-dylib feature on newer rust versions by default

2 participants