diff --git a/Cargo.toml b/Cargo.toml index e4704a65b..52c7b5ed5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -563,8 +563,8 @@ nix = { workspace = true, features = [ "process", "signal", "socket", - "user", "term", + "user", ] } rlimit = "0.10.1" xattr.workspace = true diff --git a/src/uu/dd/Cargo.toml b/src/uu/dd/Cargo.toml index f7941f5d3..5d5819c30 100644 --- a/src/uu/dd/Cargo.toml +++ b/src/uu/dd/Cargo.toml @@ -32,8 +32,8 @@ thiserror = { workspace = true } fluent = { workspace = true } [target.'cfg(any(target_os = "linux", target_os = "android"))'.dependencies] -signal-hook = { workspace = true } nix = { workspace = true, features = ["fs"] } +signal-hook = { workspace = true } [[bin]] name = "dd" diff --git a/src/uu/env/Cargo.toml b/src/uu/env/Cargo.toml index 80fe1f412..b2e4208b9 100644 --- a/src/uu/env/Cargo.toml +++ b/src/uu/env/Cargo.toml @@ -27,7 +27,6 @@ fluent = { workspace = true } [target.'cfg(unix)'.dependencies] nix = { workspace = true, features = ["signal"] } - [[bin]] name = "env" path = "src/main.rs" diff --git a/src/uu/kill/Cargo.toml b/src/uu/kill/Cargo.toml index 1813084af..10de8379d 100644 --- a/src/uu/kill/Cargo.toml +++ b/src/uu/kill/Cargo.toml @@ -19,10 +19,12 @@ path = "src/kill.rs" [dependencies] clap = { workspace = true } -nix = { workspace = true, features = ["signal"] } uucore = { workspace = true, features = ["signals"] } fluent = { workspace = true } +[target.'cfg(unix)'.dependencies] +nix = { workspace = true, features = ["signal"] } + [[bin]] name = "kill" path = "src/main.rs" diff --git a/src/uu/mkfifo/Cargo.toml b/src/uu/mkfifo/Cargo.toml index c75638482..ece483810 100644 --- a/src/uu/mkfifo/Cargo.toml +++ b/src/uu/mkfifo/Cargo.toml @@ -19,10 +19,12 @@ path = "src/mkfifo.rs" [dependencies] clap = { workspace = true } -nix = { workspace = true, features = ["fs"] } uucore = { workspace = true, features = ["fs", "mode"] } fluent = { workspace = true } +[target.'cfg(unix)'.dependencies] +nix = { workspace = true, features = ["fs"] } + [features] selinux = ["uucore/selinux"] smack = ["uucore/smack"] diff --git a/src/uu/nice/Cargo.toml b/src/uu/nice/Cargo.toml index f58c7f3d7..00f96718e 100644 --- a/src/uu/nice/Cargo.toml +++ b/src/uu/nice/Cargo.toml @@ -20,10 +20,12 @@ path = "src/nice.rs" [dependencies] clap = { workspace = true } libc = { workspace = true } -nix = { workspace = true } uucore = { workspace = true } fluent = { workspace = true } +[target.'cfg(unix)'.dependencies] +nix = { workspace = true } + [[bin]] name = "nice" path = "src/main.rs" diff --git a/src/uu/stty/Cargo.toml b/src/uu/stty/Cargo.toml index f05a4cc5b..40173b1df 100644 --- a/src/uu/stty/Cargo.toml +++ b/src/uu/stty/Cargo.toml @@ -20,9 +20,11 @@ path = "src/stty.rs" [dependencies] clap = { workspace = true } uucore = { workspace = true, features = ["parser"] } -nix = { workspace = true, features = ["term", "ioctl"] } fluent = { workspace = true } +[target.'cfg(unix)'.dependencies] +nix = { workspace = true, features = ["ioctl", "term"] } + [[bin]] name = "stty" path = "src/main.rs" diff --git a/src/uu/timeout/Cargo.toml b/src/uu/timeout/Cargo.toml index c6b795628..e0f3db171 100644 --- a/src/uu/timeout/Cargo.toml +++ b/src/uu/timeout/Cargo.toml @@ -20,10 +20,12 @@ path = "src/timeout.rs" [dependencies] clap = { workspace = true } libc = { workspace = true } -nix = { workspace = true, features = ["signal"] } uucore = { workspace = true, features = ["parser", "process", "signals"] } fluent = { workspace = true } +[target.'cfg(unix)'.dependencies] +nix = { workspace = true, features = ["signal"] } + [[bin]] name = "timeout" path = "src/main.rs" diff --git a/src/uu/tsort/Cargo.toml b/src/uu/tsort/Cargo.toml index a7e2eb014..8819596e0 100644 --- a/src/uu/tsort/Cargo.toml +++ b/src/uu/tsort/Cargo.toml @@ -23,9 +23,11 @@ clap = { workspace = true } fluent = { workspace = true } string-interner = { workspace = true } thiserror = { workspace = true } -nix = { workspace = true, features = ["fs"] } uucore = { workspace = true } +[target.'cfg(unix)'.dependencies] +nix = { workspace = true, features = ["fs"] } + [[bin]] name = "tsort" path = "src/main.rs" diff --git a/src/uu/tty/Cargo.toml b/src/uu/tty/Cargo.toml index 407e8b0d1..77165c605 100644 --- a/src/uu/tty/Cargo.toml +++ b/src/uu/tty/Cargo.toml @@ -19,10 +19,12 @@ path = "src/tty.rs" [dependencies] clap = { workspace = true } -nix = { workspace = true, features = ["term"] } uucore = { workspace = true, features = ["fs"] } fluent = { workspace = true } +[target.'cfg(unix)'.dependencies] +nix = { workspace = true, features = ["term"] } + [[bin]] name = "tty" path = "src/main.rs" diff --git a/src/uucore/Cargo.toml b/src/uucore/Cargo.toml index 1e52717d2..3cb1880d5 100644 --- a/src/uucore/Cargo.toml +++ b/src/uucore/Cargo.toml @@ -85,16 +85,16 @@ fluent-bundle = { workspace = true } thiserror = { workspace = true } [target.'cfg(unix)'.dependencies] -walkdir = { workspace = true, optional = true } nix = { workspace = true, features = [ - "fs", - "uio", - "zerocopy", - "signal", "dir", - "user", + "fs", "poll", + "signal", + "uio", + "user", + "zerocopy", ] } +walkdir = { workspace = true, optional = true } xattr = { workspace = true, optional = true } [dev-dependencies] diff --git a/tests/uutests/Cargo.toml b/tests/uutests/Cargo.toml index e73ea5902..e84214ace 100644 --- a/tests/uutests/Cargo.toml +++ b/tests/uutests/Cargo.toml @@ -36,6 +36,6 @@ uucore = { workspace = true, features = [ [target.'cfg(any(target_os = "linux", target_os = "android"))'.dependencies] [target.'cfg(unix)'.dependencies] -nix = { workspace = true, features = ["process", "signal", "user", "term"] } +nix = { workspace = true, features = ["process", "signal", "term", "user"] } rlimit = "0.10.1" xattr = { workspace = true }