]> git.feebdaed.xyz Git - 0xmirror/tokio.git/commitdiff
deps: bump windows-sys to version 0.61 (#7645)
authorwhollins <whollins@google.com>
Tue, 7 Oct 2025 08:40:42 +0000 (09:40 +0100)
committerGitHub <noreply@github.com>
Tue, 7 Oct 2025 08:40:42 +0000 (10:40 +0200)
examples/Cargo.toml
tokio/Cargo.toml
tokio/src/process/windows.rs
tokio/src/signal/windows/sys.rs

index 66e0e07980a3fe2e967ae493522c3bfd98b1cf7c..84addca5200d4f72b1ded812d7feda4c8a422c6b 100644 (file)
@@ -25,7 +25,7 @@ httpdate = "1.0"
 once_cell = "1.5.2"
 
 [target.'cfg(windows)'.dev-dependencies.windows-sys]
-version = "0.59"
+version = "0.61"
 
 [[example]]
 name = "chat"
index 90347640021110f105e0fcc1abeb332ca8f2f514..b7389d9e422b5eb657c24cf1e732425a82f6f2a0 100644 (file)
@@ -127,11 +127,11 @@ libc = { version = "0.2.168" }
 nix = { version = "0.29.0", default-features = false, features = ["aio", "fs", "socket"] }
 
 [target.'cfg(windows)'.dependencies.windows-sys]
-version = "0.59"
+version = "0.61"
 optional = true
 
 [target.'cfg(windows)'.dev-dependencies.windows-sys]
-version = "0.59"
+version = "0.61"
 features = [
   "Win32_Foundation",
   "Win32_Security_Authorization",
index c49df36b11458380bae7d248af5cea5fc1b282dc..ba00b7c84b8385fff791ec8907d21b2a137d7126 100644 (file)
@@ -33,9 +33,7 @@ use std::sync::Arc;
 use std::task::{Context, Poll};
 
 use windows_sys::{
-    Win32::Foundation::{
-        DuplicateHandle, BOOLEAN, DUPLICATE_SAME_ACCESS, HANDLE, INVALID_HANDLE_VALUE,
-    },
+    Win32::Foundation::{DuplicateHandle, DUPLICATE_SAME_ACCESS, HANDLE, INVALID_HANDLE_VALUE},
     Win32::System::Threading::{
         GetCurrentProcess, RegisterWaitForSingleObject, UnregisterWaitEx, INFINITE,
         WT_EXECUTEINWAITTHREAD, WT_EXECUTEONLYONCE,
@@ -163,7 +161,7 @@ impl Drop for Waiting {
     }
 }
 
-unsafe extern "system" fn callback(ptr: *mut std::ffi::c_void, _timer_fired: BOOLEAN) {
+unsafe extern "system" fn callback(ptr: *mut std::ffi::c_void, _timer_fired: bool) {
     let complete = &mut *(ptr as *mut Option<oneshot::Sender<()>>);
     let _ = complete.take().unwrap().send(());
 }
index 5831e33a3d1e2c883d7fa67ebc265192f38bcf30..8d81ad75f5bf1452c2f1d0309b1f02aece5011fa 100644 (file)
@@ -4,7 +4,7 @@ use std::sync::Once;
 use crate::signal::registry::{globals, EventId, EventInfo, Init, Storage};
 use crate::signal::RxFuture;
 
-use windows_sys::Win32::Foundation::BOOL;
+use windows_sys::core::BOOL;
 use windows_sys::Win32::System::Console as console;
 
 pub(super) fn ctrl_break() -> io::Result<RxFuture> {