Skip to content

Commit 32297f2

Browse files
committed
Windows Fix
1 parent 2e06f72 commit 32297f2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ libc = "0.2" # For setpgid and signal constants
2222
tracing-subscriber = { version = "0.3", features = ["env-filter", "fmt"] } # For logging setup
2323
tempfile = "3" # For creating temporary directories in examples/tests
2424
anyhow = "1.0" # For simple error handling in examples
25-
windows-sys = "0.59.0"
26-
25+
windows-sys = { version = "0.59.0", features = ["Win32"] }
2726
# Dependency on the library itself (needed for building examples within the workspace)
2827
# This line might not be strictly necessary if cargo automatically detects it,
2928
# but explicitly listing it can sometimes help.

src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ use windows_sys::Win32::System::Threading::{OpenProcess, TerminateProcess, PROCE
1818
#[cfg(unix)]
1919
use nix::unistd::Pid;
2020
#[cfg(windows)]
21-
use windows::Win32::Foundation::HANDLE;
21+
use windows_sys::Win32::Foundation::HANDLE;
2222

2323
// --- End add ---
2424

@@ -106,6 +106,7 @@ fn spawn_command_and_setup_state(
106106
command: &mut StdCommand,
107107
initial_deadline: Instant,
108108
) -> Result<CommandExecutionState<impl AsyncRead + Unpin, impl AsyncRead + Unpin>, CommandError> {
109+
109110
command.stdout(Stdio::piped());
110111
command.stderr(Stdio::piped());
111112

0 commit comments

Comments
 (0)