From eacf1b1f52e158714a512ac7cfea2efba946514e Mon Sep 17 00:00:00 2001 From: Taiki Endo Date: Sat, 1 Apr 2023 16:52:42 +0900 Subject: [PATCH] Update windows-sys to 0.48 --- examples/Cargo.toml | 2 +- tokio/Cargo.toml | 4 ++-- tokio/src/process/windows.rs | 5 ++--- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/examples/Cargo.toml b/examples/Cargo.toml index ceb2a36a18e..31ff09f24ab 100644 --- a/examples/Cargo.toml +++ b/examples/Cargo.toml @@ -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" diff --git a/tokio/Cargo.toml b/tokio/Cargo.toml index d777a547843..e074fa1903f 100644 --- a/tokio/Cargo.toml +++ b/tokio/Cargo.toml @@ -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", diff --git a/tokio/src/process/windows.rs b/tokio/src/process/windows.rs index 0e4c7ddd455..eb412cdc55f 100644 --- a/tokio/src/process/windows.rs +++ b/tokio/src/process/windows.rs @@ -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"]