Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update windows-sys to version 0.59.0 #19

Merged
merged 1 commit into from
Aug 2, 2024

Conversation

ChrisDenton
Copy link
Contributor

Changes in this release include making the HANDLE type match rust's std type (i.e. *mut c_void instead of isize).

If it's ok with you, I've used a range dependency so that it is less likely that multiple versions of windows-sys appear in someone's dependency tree. According to the stats, the last 3 versions (0.48.0. 0.52.0 and 0.59.0) account for most uses of windows-sys. I have tested that these versions work.

This shouldn't need to be updated often. The last release (0.52.0) was 9 months ago.

Copy link
Owner

@BurntSushi BurntSushi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one nit.

Cargo.toml Outdated
@@ -1,6 +1,6 @@
[package]
name = "winapi-util"
version = "0.1.8" #:version
version = "0.1.8" #:version
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this was not intended?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, oops. Auto format is a pain sometimes.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

@@ -13,7 +13,7 @@ categories = ["os::windows-apis", "external-ffi-bindings"]
edition = "2021"

[target.'cfg(windows)'.dependencies.windows-sys]
version = "0.52.0"
version = ">=0.48.0, <=0.59.*"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, so my initial reaction to this was that libraries shouldn't be setting upper bounds. But this looks like it is strictly more flexible than 0.59.0. Which I think makes sense to me.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah. I just wanted to make sure that all sem-ver compatible point releases would be included without also including arbitrary future breaking releases. I could have also used <0.60.0 but I thought it was a bit clearer to write the current version rather.

@BurntSushi BurntSushi merged commit da28eac into BurntSushi:master Aug 2, 2024
@BurntSushi
Copy link
Owner

This is on crates.io in winapi-util 0.1.9. Thank you!

@ChrisDenton ChrisDenton deleted the windows-sys-0-59 branch August 2, 2024 21:18
BurntSushi added a commit to BurntSushi/jiff that referenced this pull request Aug 18, 2024
This matches a similar change made by @ChrisDenton for winapi-util in:
BurntSushi/winapi-util#19

The benefit is that this should hopefully put less constraints on the
ecosystem and to enable fewer copies of windows-sys to appear in
dependency trees.

I am somewhat miffed that this is necessary. IMO, the windows-sys
maintainers should find a way to make a stable release with infrequent
or ~zero breaking change releases.
BurntSushi added a commit to BurntSushi/jiff that referenced this pull request Aug 18, 2024
This matches a similar change made by @ChrisDenton for winapi-util in:
BurntSushi/winapi-util#19

The benefit is that this should hopefully put less constraints on the
ecosystem and to enable fewer copies of windows-sys to appear in
dependency trees.

I am somewhat miffed that this is necessary. IMO, the windows-sys
maintainers should find a way to make a stable release with infrequent
or ~zero breaking change releases.
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.

2 participants