-
-
Notifications
You must be signed in to change notification settings - Fork 15
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
Conversation
There was a problem hiding this 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 |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.*" |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
742763c
to
26020f7
Compare
This is on crates.io in |
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.
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.
Changes in this release include making the
HANDLE
type match rust's std type (i.e.*mut c_void
instead ofisize
).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 ofwindows-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.