diff --git a/Cargo.lock b/Cargo.lock index 3c5ad8f23..a7180aa76 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1618,8 +1618,8 @@ dependencies = [ "serde_path_to_error", "tokio", "toml 0.8.19", - "winapi", "winapi-util", + "windows-sys 0.59.0", "winresource", ] diff --git a/packages/packsquash_cli/Cargo.toml b/packages/packsquash_cli/Cargo.toml index 438d90337..0cadceedd 100644 --- a/packages/packsquash_cli/Cargo.toml +++ b/packages/packsquash_cli/Cargo.toml @@ -26,9 +26,7 @@ env_logger = { version = "0.11.5", default-features = false, features = [ anstyle = "1.0.10" [target.'cfg(windows)'.dependencies] -winapi = { version = "0.3.9", default-features = false, features = [ - "consoleapi", -] } +windows-sys = { version = "0.59.0", features = ["Win32_System_Console"] } winapi-util = "0.1.9" [target.'cfg(all(target_os = "linux", target_env = "musl"))'.dependencies] diff --git a/packages/packsquash_cli/src/bin/packsquash/terminal_title_setter/windows.rs b/packages/packsquash_cli/src/bin/packsquash/terminal_title_setter/windows.rs index 4e11f6f74..2bf1296b2 100644 --- a/packages/packsquash_cli/src/bin/packsquash/terminal_title_setter/windows.rs +++ b/packages/packsquash_cli/src/bin/packsquash/terminal_title_setter/windows.rs @@ -4,7 +4,7 @@ use std::io::IsTerminal; use std::os::windows::ffi::OsStrExt; use std::{env, io}; -use winapi::um::wincon::SetConsoleTitleW; +use windows_sys::Win32::System::Console::SetConsoleTitleW; use winapi_util::console::Console; use super::{write_ansi_set_window_title_escape_sequence, TerminalTitleSetterTrait};