-
Notifications
You must be signed in to change notification settings - Fork 281
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
Migrating to windows-sys #718
base: master
Are you sure you want to change the base?
Conversation
I think you should keep this open, it's a reasonable improvement |
I've just gotten too busy to keep track of this pr and didn't see anyone saying anything about moving from winapi, besides #662 for compile times, in addition to needing the crossterm-winapi pr in order to make the build work (without breaking changes). I'll go ahead and reopen it and the crossterm-winapi pr for review, but I might not be responsive. |
Thanks for PR, just haven't gotten to it yet as I'm not sure about the benefits yet. The only reason I can think of is that winapi is not actively maintained, and windows-rs is owned by Microsoft. But winapi works perfectly and we do not have the need to switch really. So kinda low priority-wise to get this in. Especially this change needs to be well tested. Altough |
@TimonPost No problem at all. I just figured that it might help in keeping everything up to date with any new API, e.g. ConPTY, allowing the awesome contributors here to provide more features down the road and keep everything working well. Also, if Hope everyone's having a good day, remember to take frequent breaks. |
@TimonPost can you review this maybe it would help for #772 issue and resolve this problem.. Thanks! |
Hey I've been busy on other things so I can't maintain this to current. It probably won't happen until @TimonPost makes a concerted effort themselves, but it's easy enough for someone to do again within a day. I'll leave it open just as a reminder that winapi is, at least slowly, becoming deprecated, its last commit was three years ago, and migration to windows-sys is requested, but feel free to close anytime.
|
I do want to add that it helps out dependents since a lot of newer crates and some older crates use |
Agreed! If its something the ecosystem works towards we can make this effort. If someone feels like it it can be rebased. Try run the interactive demo in the examples. Mainly testing the features that are essentially different in windows vs unix. resizing, cursor position, events etc... |
I found some time, so I went ahead and just forced a rebase here. quick tests seem to pass. ...except resizing, and I don't know why, so if anyone wants to take a shot at it go ahead. Just to note,
|
It looks like everything except for socket2 now uses windows-sys/windows-target (part of the same dependency tree). The latest version of socket2 also uses windows-sys. Moving away from winapi is definitely be the right path forward here. Inverse dependency trees from cargo tree:
|
Attempting at move windows-sys for win32 api.