From 351adedec1619d0c0ebd7a635792ad06301ea7f5 Mon Sep 17 00:00:00 2001 From: Daniel Hofstetter Date: Tue, 29 Jul 2025 13:14:08 +0200 Subject: [PATCH] Remove unused procfs dependency --- Cargo.lock | 60 ++++++------------------------------------------------ Cargo.toml | 3 +-- 2 files changed, 7 insertions(+), 56 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 8664184..0d89617 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -423,12 +423,6 @@ version = "0.15.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bf151400ff0baff5465007dd2f3e717f3fe502074ca563069ce3a6629d07b289" -[[package]] -name = "hex" -version = "0.4.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70" - [[package]] name = "iana-time-zone" version = "0.1.63" @@ -540,12 +534,6 @@ dependencies = [ "walkdir", ] -[[package]] -name = "linux-raw-sys" -version = "0.4.15" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d26c52dbd32dccf2d10cac7725f8eae5296885fb5703b261f7d0a0739ec807ab" - [[package]] name = "linux-raw-sys" version = "0.9.4" @@ -789,28 +777,6 @@ dependencies = [ "unicode-ident", ] -[[package]] -name = "procfs" -version = "0.17.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cc5b72d8145275d844d4b5f6d4e1eef00c8cd889edb6035c21675d1bb1f45c9f" -dependencies = [ - "bitflags", - "hex", - "procfs-core", - "rustix 0.38.44", -] - -[[package]] -name = "procfs-core" -version = "0.17.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "239df02d8349b06fc07398a3a1697b06418223b1c7725085e801e7c0fc6a12ec" -dependencies = [ - "bitflags", - "hex", -] - [[package]] name = "quote" version = "1.0.40" @@ -926,19 +892,6 @@ version = "2.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "357703d41365b4b27c590e3ed91eabb1b663f07c4c084095e60cbed4362dff0d" -[[package]] -name = "rustix" -version = "0.38.44" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fdb5bc1ae2baa591800df16c9ca78619bf65c0488b41b96ccec5d11220d8c154" -dependencies = [ - "bitflags", - "errno", - "libc", - "linux-raw-sys 0.4.15", - "windows-sys 0.59.0", -] - [[package]] name = "rustix" version = "1.0.5" @@ -948,7 +901,7 @@ dependencies = [ "bitflags", "errno", "libc", - "linux-raw-sys 0.9.4", + "linux-raw-sys", "windows-sys 0.59.0", ] @@ -1110,7 +1063,7 @@ dependencies = [ "fastrand", "getrandom", "once_cell", - "rustix 1.0.5", + "rustix", "windows-sys 0.59.0", ] @@ -1120,7 +1073,7 @@ version = "0.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "45c6481c4829e4cc63825e62c49186a34538b7b2750b73b266581ffb612fb5ed" dependencies = [ - "rustix 1.0.5", + "rustix", "windows-sys 0.59.0", ] @@ -1269,7 +1222,6 @@ dependencies = [ "phf", "phf_codegen", "pretty_assertions", - "procfs", "rand 0.9.2", "regex", "rlimit", @@ -1304,7 +1256,7 @@ name = "uu_blockdev" version = "0.0.1" dependencies = [ "clap", - "linux-raw-sys 0.9.4", + "linux-raw-sys", "regex", "sysinfo", "uucore", @@ -1348,7 +1300,7 @@ name = "uu_fsfreeze" version = "0.0.1" dependencies = [ "clap", - "linux-raw-sys 0.9.4", + "linux-raw-sys", "regex", "sysinfo", "uucore", @@ -1943,7 +1895,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "af3a19837351dc82ba89f8a125e22a3c475f05aba604acc023d62b2739ae2909" dependencies = [ "libc", - "rustix 1.0.5", + "rustix", ] [[package]] diff --git a/Cargo.toml b/Cargo.toml index 08edc15..49e1bac 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ # util-linux (uutils) # * see the repository LICENSE, README, and CONTRIBUTING files for more information -# spell-checker:ignore (libs) bigdecimal datetime fundu gethostid kqueue libselinux mangen memmap procfs uuhelp +# spell-checker:ignore (libs) bigdecimal datetime fundu gethostid kqueue libselinux mangen memmap uuhelp [package] name = "util-linux" @@ -120,7 +120,6 @@ nix = { workspace = true, features = ["term"] } xattr = { workspace = true } [target.'cfg(any(target_os = "linux", target_os = "android"))'.dev-dependencies] -procfs = { version = "0.17", default-features = false } rlimit = "0.10.1" [build-dependencies]