Skip to content

Commit 2ef81e0

Browse files
committed
rust: fix windows build
1 parent 7840e51 commit 2ef81e0

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

rust/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ nom = { version = "7.1", default-features = false, features = ["std"] }
2323
regex = "1.9"
2424
shell-words = "1.1"
2525
tempfile = "3.13"
26+
signal-hook = { version = "0.3", features = ["iterator"] }
2627

2728
[workspace.package]
2829
version = "4.0.0"

rust/bear/Cargo.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,7 @@ nom.workspace = true
4040
regex.workspace = true
4141
rand.workspace = true
4242
tempfile.workspace = true
43-
nix = { version = "0.29", optional = true, features = ["signal", "process"] }
44-
winapi = { version = "0.3", optional = true, features = ["processthreadsapi", "winnt", "handleapi"] }
45-
signal-hook = "0.3.17"
43+
signal-hook.workspace = true
4644

4745
[target.'cfg(unix)'.dependencies]
4846
nix = { version = "0.29", features = ["signal", "process"] }

rust/bear/src/intercept/supervise.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// SPDX-License-Identifier: GPL-3.0-or-later
22

33
use anyhow::Result;
4+
#[cfg(unix)]
45
use nix::libc::c_int;
56
#[cfg(unix)]
67
use nix::sys::signal::{kill, Signal};

0 commit comments

Comments
 (0)