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 #26

Merged
merged 1 commit into from Nov 25, 2022
Merged

Switch from winapi to windows-sys #26

merged 1 commit into from Nov 25, 2022

Conversation

messense
Copy link
Contributor

The Rust ecosystem is migrating from winapi to windows-sys, for example tokio-rs/tokio#5204

@@ -14,7 +14,7 @@ edition = "2018"
libc = "0.2.62"

[target.'cfg(windows)'.dependencies]
winapi = { version = "0.3.5", features = ["handleapi", "namedpipeapi", "processthreadsapi", "winnt"] }
windows-sys = { version = "0.42.0", features = ["Win32_Foundation", "Win32_System_Pipes", "Win32_Security", "Win32_System_Threading"] }
Copy link
Owner

Choose a reason for hiding this comment

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

Thanks! Looks like winapi hasn't been updated in a couple years, so this seems like a good change. Do you know if any of these features can be removed, or are they all needed? (I don't have a Windows machine with me today to just check.)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The features are taken from its documentation, for example https://docs.rs/windows-sys/latest/windows_sys/Win32/System/Pipes/fn.CreatePipe.html, all of them are required

@oconnor663 oconnor663 merged commit 3bacd8a into oconnor663:master Nov 25, 2022
@oconnor663
Copy link
Owner

Just released as v1.1.2. Thanks again!

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

2 participants