Skip to content

Update to Windows-sys v0.59 #579

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

Merged
merged 1 commit into from
May 24, 2025
Merged

Update to Windows-sys v0.59 #579

merged 1 commit into from
May 24, 2025

Conversation

Thomasdezeeuw
Copy link
Collaborator

No description provided.

@@ -938,9 +938,11 @@ pub(crate) fn unix_sockaddr(path: &Path) -> io::Result<SockAddr> {
}

storage.sun_family = crate::sys::AF_UNIX as sa_family_t;
// SAFETY: casting `[u8]` to `[i8]` is safe.
let b = unsafe { &*(bytes as *const [u8] as *const [i8]) };
Copy link
Collaborator

Choose a reason for hiding this comment

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

Seems a bit fragile to rely on char being i8.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Missed this comment, will send a pr to change it to char

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@ErichDonGubler
Copy link

This PR is intended as a successor to #545, but I have concerns about not using a range version like I had authored there: #545 (comment)

It seems unnecessarily hostile to hard-upgrade when not necessary for users who are already trying to tackle the big migrations the windows crate ecosystem causes.

Copy link
Collaborator

@chansuke chansuke left a comment

Choose a reason for hiding this comment

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

lgtm

@Darksonn
Copy link
Collaborator

Cargo's support for range dependencies is not good. I do not recommend attempting to use it.

@Thomasdezeeuw
Copy link
Collaborator Author

@ErichDonGubler I agree with @Darksonn here. In addition I also don't want to support multiple window-sys versions with breaking changes in between, the instability of the latest version is enough of a maintenance burden as it is.

@Thomasdezeeuw Thomasdezeeuw merged commit dd97053 into master May 24, 2025
46 checks passed
@Thomasdezeeuw Thomasdezeeuw deleted the win-sys-0.59 branch May 24, 2025 14:47
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.

4 participants