Skip to content

Commit

Permalink
chore: replace winapi crate by better maintained windows-sys
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexTMjugador committed Nov 23, 2024
1 parent 6d3f081 commit 90ad926
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions packages/packsquash_cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand Down

0 comments on commit 90ad926

Please sign in to comment.