Skip to content

Commit d59d331

Browse files
committed
chore: remove unused dependencies
Try to remove all unused dependencies from various crates
1 parent ef9cb27 commit d59d331

File tree

14 files changed

+33
-75
lines changed

14 files changed

+33
-75
lines changed

Cargo.lock

Lines changed: 4 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,13 @@ feat_os_windows_legacy = [
256256
# * bypass/override ~ translate 'test' feature name to avoid dependency collision with rust core 'test' crate (o/w surfaces as compiler errors during testing)
257257
test = ["uu_test"]
258258

259+
[workspace]
260+
resolver = "3"
261+
members = [".", "src/uu/*", "src/uu/stdbuf/src/libstdbuf", "src/uucore", "src/uucore_procs", "src/uuhelp_parser", "tests/uutests"]
262+
# Not part of the workspace yet, but perhaps they should be?
263+
# - fuzz/Cargo.toml
264+
# - tests/benches/factor/Cargo.toml
265+
259266
[workspace.package]
260267
authors = ["uutils developers"]
261268
categories = ["command-line-utilities"]
@@ -331,15 +338,12 @@ rust-ini = "0.21.0"
331338
same-file = "1.0.6"
332339
self_cell = "1.0.4"
333340
selinux = "0.5.1"
334-
selinux-sys = "0.6.14"
335341
signal-hook = "0.3.17"
336-
smallvec = { version = "1.13.2", features = ["union"] }
337342
tempfile = "3.15.0"
338343
terminal_size = "0.4.0"
339344
textwrap = { version = "0.16.1", features = ["terminal_size"] }
340345
thiserror = "2.0.3"
341346
time = { version = "0.3.36" }
342-
unicode-segmentation = "1.11.0"
343347
unicode-width = "0.2.0"
344348
utmp-classic = "0.1.6"
345349
uutils_term_grid = "0.7"
@@ -361,7 +365,6 @@ crc32fast = "1.4.2"
361365
digest = "0.10.7"
362366

363367
# Fluent dependencies
364-
fluent-bundle = "0.16.0"
365368
fluent = "0.17.0"
366369
unic-langid = "0.9.6"
367370

@@ -414,7 +417,7 @@ env = { optional = true, version = "0.1.0", package = "uu_env", path = "src/uu/e
414417
expand = { optional = true, version = "0.1.0", package = "uu_expand", path = "src/uu/expand" }
415418
expr = { optional = true, version = "0.1.0", package = "uu_expr", path = "src/uu/expr" }
416419
factor = { optional = true, version = "0.1.0", package = "uu_factor", path = "src/uu/factor" }
417-
false = { optional = true, version = "0.1.0", package = "uu_false", path = "src/uu/false" }
420+
"false" = { optional = true, version = "0.1.0", package = "uu_false", path = "src/uu/false" }
418421
fmt = { optional = true, version = "0.1.0", package = "uu_fmt", path = "src/uu/fmt" }
419422
fold = { optional = true, version = "0.1.0", package = "uu_fold", path = "src/uu/fold" }
420423
groups = { optional = true, version = "0.1.0", package = "uu_groups", path = "src/uu/groups" }
@@ -472,7 +475,7 @@ tee = { optional = true, version = "0.1.0", package = "uu_tee", path = "src/uu/t
472475
timeout = { optional = true, version = "0.1.0", package = "uu_timeout", path = "src/uu/timeout" }
473476
touch = { optional = true, version = "0.1.0", package = "uu_touch", path = "src/uu/touch" }
474477
tr = { optional = true, version = "0.1.0", package = "uu_tr", path = "src/uu/tr" }
475-
true = { optional = true, version = "0.1.0", package = "uu_true", path = "src/uu/true" }
478+
"true" = { optional = true, version = "0.1.0", package = "uu_true", path = "src/uu/true" }
476479
truncate = { optional = true, version = "0.1.0", package = "uu_truncate", path = "src/uu/truncate" }
477480
tsort = { optional = true, version = "0.1.0", package = "uu_tsort", path = "src/uu/tsort" }
478481
tty = { optional = true, version = "0.1.0", package = "uu_tty", path = "src/uu/tty" }
@@ -486,7 +489,7 @@ vdir = { optional = true, version = "0.1.0", package = "uu_vdir", path = "src/uu
486489
wc = { optional = true, version = "0.1.0", package = "uu_wc", path = "src/uu/wc" }
487490
who = { optional = true, version = "0.1.0", package = "uu_who", path = "src/uu/who" }
488491
whoami = { optional = true, version = "0.1.0", package = "uu_whoami", path = "src/uu/whoami" }
489-
yes = { optional = true, version = "0.1.0", package = "uu_yes", path = "src/uu/yes" }
492+
"yes" = { optional = true, version = "0.1.0", package = "uu_yes", path = "src/uu/yes" }
490493

491494
# this breaks clippy linting with: "tests/by-util/test_factor_benches.rs: No such file or directory (os error 2)"
492495
# factor_benches = { optional = true, version = "0.0.0", package = "uu_factor_benches", path = "tests/benches/factor" }
@@ -527,7 +530,7 @@ nix = { workspace = true, features = ["process", "signal", "user", "term"] }
527530
rlimit = "0.10.1"
528531
xattr = { workspace = true }
529532

530-
# Specifically used in test_uptime::test_uptime_with_file_containing_valid_boot_time_utmpx_record
533+
# Specifically, used in test_uptime::test_uptime_with_file_containing_valid_boot_time_utmpx_record
531534
# to deserialize a utmpx struct into a binary file
532535
[target.'cfg(all(target_family= "unix",not(target_os = "macos")))'.dev-dependencies]
533536
serde = { version = "1.0.202", features = ["derive"] }

fuzz/Cargo.lock

Lines changed: 18 additions & 26 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/uu/chmod/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ path = "src/chmod.rs"
1919

2020
[dependencies]
2121
clap = { workspace = true }
22-
libc = { workspace = true }
2322
uucore = { workspace = true, features = ["entries", "fs", "mode", "perms"] }
2423

2524
[[bin]]

src/uu/cksum/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ path = "src/cksum.rs"
2121
clap = { workspace = true }
2222
uucore = { workspace = true, features = ["checksum", "encoding", "sum"] }
2323
hex = { workspace = true }
24-
regex = { workspace = true }
2524

2625
[[bin]]
2726
name = "cksum"

src/uu/factor/Cargo.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ num-traits = { workspace = true } # used in src/numerics.rs, which is included b
2020
[dependencies]
2121
clap = { workspace = true }
2222
num-traits = { workspace = true }
23-
rand = { workspace = true }
24-
smallvec = { workspace = true }
2523
uucore = { workspace = true }
2624
num-bigint = { workspace = true }
2725
num-prime = { workspace = true }

src/uu/hashsum/Cargo.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@ path = "src/hashsum.rs"
2020
[dependencies]
2121
clap = { workspace = true }
2222
uucore = { workspace = true, features = ["checksum", "sum"] }
23-
memchr = { workspace = true }
24-
regex = { workspace = true }
25-
hex = { workspace = true }
2623

2724
[[bin]]
2825
name = "hashsum"

src/uu/install/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ path = "src/install.rs"
2121
clap = { workspace = true }
2222
filetime = { workspace = true }
2323
file_diff = { workspace = true }
24-
libc = { workspace = true }
2524
thiserror = { workspace = true }
2625
uucore = { workspace = true, features = [
2726
"backup-control",

0 commit comments

Comments
 (0)