From d00c8ba0d811ed32910a3da49b5427fdf8b5c587 Mon Sep 17 00:00:00 2001 From: Ryan Zoeller Date: Tue, 17 May 2022 22:00:44 -0500 Subject: [PATCH] Limit nix features This removes memoffset as an indirect dependency and reduces clean build times slightly. --- Cargo.lock | 10 ---------- Cargo.toml | 2 +- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index df8805a..7553fb8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -357,15 +357,6 @@ version = "2.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "308cc39be01b73d0d18f82a0e7b2a3df85245f84af96fdddc5d202d27e47b86a" -[[package]] -name = "memoffset" -version = "0.6.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5aa361d4faea93603064a027415f07bd8e1d5c88c9fbf68bf56a285428fd79ce" -dependencies = [ - "autocfg", -] - [[package]] name = "nix" version = "0.24.1" @@ -375,7 +366,6 @@ dependencies = [ "bitflags", "cfg-if", "libc", - "memoffset", ] [[package]] diff --git a/Cargo.toml b/Cargo.toml index 636d8c3..02014bd 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -57,7 +57,7 @@ features = ["suggestions", "color", "wrap_help", "cargo", "unstable-grouped"] [target.'cfg(unix)'.dependencies] users = "0.11.0" -nix = "0.24.1" +nix = { version = "0.24.1", default-features = false, features = ["signal"] } [target.'cfg(all(unix, not(target_os = "redox")))'.dependencies] libc = "0.2"