Update nix crate to 0.25 and narrow features (#6924)

Avoids compiling the crate twice due to incompatible versions from
dependencies. This avoids binary bloat before linking as well.
Narrow our feature selection to the used modules/functions to save
compile time. On my machine reduces `nix` crate compile time from 
around 9 secs to 0.9 secs.
This commit is contained in:
Stefan Holderbach
2022-10-28 01:07:13 +02:00
committed by GitHub
parent 834522d002
commit 8838815737
3 changed files with 5 additions and 17 deletions

View File

@ -18,7 +18,7 @@ libc = "0.2"
log = "0.4"
[target.'cfg(target_family = "unix")'.dependencies]
nix = "0.24"
nix = { version = "0.25", default-features = false, features = ["fs", "term", "process", "signal"]}
atty = "0.2"
[target.'cfg(any(target_os = "linux", target_os = "android"))'.dependencies]