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

Switch from winapi to windows-sys #55

Merged
merged 2 commits into from
Dec 17, 2022
Merged

Conversation

LingMan
Copy link
Contributor

@LingMan LingMan commented Dec 16, 2022

The first commit is a pure cargo fmt run to get a clean slate. The second commit is more interesting and switches from winapi to the windows-sys, which is maintained by Microsoft.

The wider ecosystem appears to be switching. Let's follow suit so dependents don't have to compile both. At least in my dependency trees errno is one of the last holdouts.

This raises the MSRV to 1.48. For the last MSRV bump caps and rustix were considered. rustix already depends on windows-sys and is interested in having this change while caps has since dropped their dependency on errno (both per lucab/caps-rs#79).

I have ideas for a few more cleanups/minor fixes but they would collide with these changes, so it would be best to merge this first.

The ecosystem is switching from winapi to the Microsoft-maintained windows-sys. Follow suit so
depentents don't have to compile both.

This raises the MSRV to 1.48.
@lambda-fairy
Copy link
Owner

Thanks!

If you have the time, I'd appreciate having rustfmt enforced in CI as well. Then we can prevent regressions in formatting.

@LingMan
Copy link
Contributor Author

LingMan commented Dec 17, 2022

Sure, I wanted to give CI some love anyway.

@LingMan LingMan deleted the win branch December 17, 2022 13:06
@Unpublished
Copy link

@lambda-fairy What are your plans on releasing a version with this PR included? Would like to see winapi gone in my builds :)

@lambda-fairy
Copy link
Owner

@Unpublished Released. Thanks for waiting :)

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.

None yet

3 participants