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

Migrate from winapi to widows-sys #5993

Closed
kchibisov opened this issue Apr 8, 2022 · 5 comments
Closed

Migrate from winapi to widows-sys #5993

kchibisov opened this issue Apr 8, 2022 · 5 comments

Comments

@kchibisov
Copy link
Member

It seems like there's a movement of migrating from winapi to windows-sys, since the latter is directly maintained by microsoft. Upstream winit for example already moved to windows-sys.

@kchibisov kchibisov changed the title Migrate winpty to widows-sys Migrate from winapi to widows-sys Apr 8, 2022
@chrisduerr
Copy link
Member

It seems like there's a movement of migrating from winapi to windows-sys, since the latter is directly maintained by microsoft.

While Microsoft maintaining their own API makes some sense, I'm not sure that alone is an argument for switching? Do you know if there has been a statement by winapi encouraging people to switch? The project doesn't seem to be super active anymore though maybe it's just "done"?

Generally winapi still seems to have about 5 times the number of recent downloads on crates.io, so it still seems to be a good chunk more popular.

@kchibisov
Copy link
Member Author

@chrisduerr the problem is that we have both at the same time and winit moved to windows-sys recently.

In general we won't have 2 dependencies linking to the same system libraries.

@chrisduerr
Copy link
Member

@chrisduerr the problem is that we have both at the same time and winit moved to windows-sys recently.

I mean why did they move? Did they have a reason or did they just do it to annoy downstream?

@kchibisov
Copy link
Member Author

I think the motivation is rust-windowing/winit#2057 ? Though, it was more about windows-rs, and not sys.

Though, winapi seems like indeed unmaintained.

@chrisduerr
Copy link
Member

Windows is such a shitshow, I guess I don't really care either way as long as we're not switching dependencies every couple months.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants