microsoft / windows-rs

Rust for Windows
https://kennykerr.ca/rust-getting-started/
Apache License 2.0
10.23k stars 475 forks source link

Why is `windows-sys` not updating? #3028

Closed HoShiMin closed 3 months ago

HoShiMin commented 3 months ago

Suggestion

As the windows-sys doesn't get new releases, I can't use it due to old critical bugs like microsoft/windows-rs#2612. So, what about new release?

ChrisDenton commented 3 months ago

The windows-sys crate is not published regularly to avoid version churn.

You can however request an update.

HoShiMin commented 3 months ago

@ChrisDenton,

to avoid version churn.

But why is it bad? windows-sys is very important for development in no-std environments like kernel drivers and we are stuck on legacy version with critical bugs - so, instead of just using Cargo, we have to link it directly as a git repo to use the latest version. And what is the gain?

You can however request an update.

How could I do that?

ChrisDenton commented 3 months ago

But why is it bad? windows-sys is very important for development in no-std environments like kernel drivers and we are stuck on legacy version with critical bugs - so, instead of just using Cargo, we have to link it directly as a git repo to use the latest version. And what is the gain?

It used to be released regularly. People complained. The trouble is that when a new version of windows-sys is released, every crate that depends on it also has to update otherwise users will get multiple versions in their dependency graph, slowing compile times. Therefore updates are now done on an as-needed basis.

How could I do that?

You have already done so by making this issue.

HoShiMin commented 3 months ago

@ChrisDenton,

You have already done so by making this issue.

Well, it would be great if it will be updated right after fixing microsoft/wdkmetadata#67 as it's the only thing for me that prevents the use of windows-sys.

kennykerr commented 3 months ago

Feel free to circle back when the metadata issues have been resolved and you've tested with windows-rs and are ready for production.