wezterm-mux-server: replace winapi with windows-sys (#8224)

This commit is contained in:
xtqqczze authored and GitHub committed 2026-11-25 18:20:40 +01:00
1 parent eb32338108
commit 7d0eb9685c
3 files changed
+4 -3

No files matched your search

Generated
+1 -1
View File
@@ -7231,7 +7231,7 @@ dependencies = [
"wezterm-gui-subcommands",
"wezterm-mux-server-impl",
"wezterm-term",
"winapi",
"windows-sys 0.61.2",
]
[[package]]
+1 -1
View File
@@ -28,7 +28,7 @@ wezterm-gui-subcommands.workspace = true
wezterm-term.workspace = true
[target."cfg(windows)".dependencies]
winapi = { workspace=true, features = [ "winuser" ]}
windows-sys = { workspace = true, features = ["Win32_System_Threading"] }
[target.'cfg(windows)'.build-dependencies]
embed-resource.workspace = true
+2 -1
View File
@@ -160,10 +160,11 @@ fn run() -> anyhow::Result<()> {
#[cfg(windows)]
{
use std::os::windows::process::CommandExt;
use windows_sys::Win32::System::Threading::DETACHED_PROCESS;
cmd.stdout(config.daemon_options.open_stdout()?);
cmd.stderr(config.daemon_options.open_stderr()?);
cmd.creation_flags(winapi::um::winbase::DETACHED_PROCESS);
cmd.creation_flags(DETACHED_PROCESS);
let child = cmd.spawn();
drop(child);
return Ok(());