diff --git a/Cargo.toml b/Cargo.toml index 07170e453d..0dac08fe34 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -50,7 +50,7 @@ unicode-width = "0.1.0" uuid = { version = "1.0.0", features = ["v4"] } [target.'cfg(windows)'.dependencies] -windows-sys = {version = "0.52.0", features = ["Win32_Foundation", "Win32_System_Threading", "Win32_System_Console"] } +windows = {version = "0.52.0", features = ["Win32_Foundation", "Win32_System_Threading", "Win32_System_Console"] } [dev-dependencies] cradle = "0.2.0" diff --git a/src/signal_handler.rs b/src/signal_handler.rs index f35dfa933e..5acce557b8 100644 --- a/src/signal_handler.rs +++ b/src/signal_handler.rs @@ -87,7 +87,7 @@ impl SignalHandler { #[cfg(windows)] unsafe { - windows_sys::Win32::System::Console::GenerateConsoleCtrlEvent(signal as u32, child_pid); + windows::Win32::System::Console::GenerateConsoleCtrlEvent(signal as u32, child_pid); } } match child.try_wait() { diff --git a/tests/signals.rs b/tests/signals.rs index f31a9570f7..d790d8bfb7 100644 --- a/tests/signals.rs +++ b/tests/signals.rs @@ -12,7 +12,7 @@ fn send_signal(process_id: u32, signal: i32) { } #[cfg(windows)] unsafe { - let res = windows_sys::Win32::System::Console::GenerateConsoleCtrlEvent( + let res = windows::Win32::System::Console::GenerateConsoleCtrlEvent( signal as u32, process_id as u32, );