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

Update windows-sys to 0.48 #5591

Merged
merged 1 commit into from Apr 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/Cargo.toml
Expand Up @@ -25,7 +25,7 @@ once_cell = "1.5.2"
rand = "0.8.3"

[target.'cfg(windows)'.dev-dependencies.windows-sys]
version = "0.45"
version = "0.48"

[[example]]
name = "chat"
Expand Down
4 changes: 2 additions & 2 deletions tokio/Cargo.toml
Expand Up @@ -124,11 +124,11 @@ libc = { version = "0.2.42" }
nix = { version = "0.26", default-features = false, features = ["fs", "socket"] }

[target.'cfg(windows)'.dependencies.windows-sys]
version = "0.45"
version = "0.48"
optional = true

[target.'cfg(docsrs)'.dependencies.windows-sys]
version = "0.45"
version = "0.48"
features = [
"Win32_Foundation",
"Win32_Security_Authorization",
Expand Down
5 changes: 2 additions & 3 deletions tokio/src/process/windows.rs
Expand Up @@ -36,10 +36,9 @@ use windows_sys::{
DuplicateHandle, BOOLEAN, DUPLICATE_SAME_ACCESS, HANDLE, INVALID_HANDLE_VALUE,
},
Win32::System::Threading::{
GetCurrentProcess, RegisterWaitForSingleObject, UnregisterWaitEx, WT_EXECUTEINWAITTHREAD,
WT_EXECUTEONLYONCE,
GetCurrentProcess, RegisterWaitForSingleObject, UnregisterWaitEx, INFINITE,
WT_EXECUTEINWAITTHREAD, WT_EXECUTEONLYONCE,
},
Win32::System::WindowsProgramming::INFINITE,
};

#[must_use = "futures do nothing unless polled"]
Expand Down