Skip to content

Commit bef52cf

Browse files
authored
Fix target-specific feature flags for rustix dependency (#96)
The "rustix::process" module is only imported for `cfg(target_os = "linux")`, but the "process" feature of rustix was only enabled if the target_os was *not* "linux". This change enables the "process" feature on unix-y platforms in general, which should be more robust.
1 parent ea65144 commit bef52cf

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Cargo.toml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,12 @@ tracing = { version = "0.1.40", default-features = false }
2424

2525
[target.'cfg(unix)'.dependencies]
2626
async-signal = "0.2.3"
27-
rustix = { version = "1.0", default-features = false, features = ["std", "fs"] }
27+
rustix = { version = "1.0", default-features = false, features = ["std", "fs", "process"] }
2828

2929
[target.'cfg(any(windows, target_os = "linux"))'.dependencies]
3030
async-channel = "2.0.0"
3131
async-task = "4.7.0"
3232

33-
[target.'cfg(all(unix, not(target_os = "linux")))'.dependencies]
34-
rustix = { version = "1.0", default-features = false, features = ["std", "fs", "process"] }
35-
3633
[target.'cfg(windows)'.dependencies]
3734
blocking = "1.0.0"
3835

0 commit comments

Comments
 (0)