| 1 |
# coreutils (uutils) |
| 2 |
# * see the repository LICENSE, README, and CONTRIBUTING files for more information |
| 3 |
|
| 4 |
# spell-checker:ignore (libs) bigdecimal datetime foldhash serde kqueue libcrypto libselinux mangen memmap uuhelp startswith constness expl unnested logind cfgs interner getauxval hashbrown tzdb |
| 5 |
|
| 6 |
[package] |
| 7 |
name = "coreutils" |
| 8 |
description = "coreutils ~ GNU coreutils (updated); implemented as universal (cross-platform) utils, written in Rust" |
| 9 |
default-run = "coreutils" |
| 10 |
repository = "https://github.com/uutils/coreutils" |
| 11 |
edition.workspace = true |
| 12 |
rust-version.workspace = true |
| 13 |
version.workspace = true |
| 14 |
license.workspace = true |
| 15 |
keywords.workspace = true |
| 16 |
categories.workspace = true |
| 17 |
|
| 18 |
[package.metadata.docs.rs] |
| 19 |
all-features = true |
| 20 |
|
| 21 |
[features] |
| 22 |
default = ["feat_common_core", "feat_diagnostics"] |
| 23 |
## OS feature shortcodes |
| 24 |
unix = ["feat_os_unix"] |
| 25 |
windows = ["feat_os_windows"] |
| 26 |
## project-specific feature shortcodes |
| 27 |
expensive_tests = [] |
| 28 |
# Opt-in: use OpenSSL (libcrypto) for md5/sha1/sha2-family digests in the |
| 29 |
# checksum utilities instead of the pure-Rust crates. Provides large speedups |
| 30 |
# on CPUs without SHA-NI. |
| 31 |
# |
| 32 |
# Enable with: `cargo build --release --features openssl` |
| 33 |
# |
| 34 |
# By default OpenSSL is built from source and statically linked (via the |
| 35 |
# `vendored` feature of the `openssl` crate). To link against the system |
| 36 |
# libcrypto/libssl dynamically instead, set `OPENSSL_NO_VENDOR=1` at build time. |
| 37 |
# |
| 38 |
# The `?/openssl` entries propagate the choice into each standalone checksum |
| 39 |
# crate only when that crate is itself enabled, so disabling this feature |
| 40 |
# genuinely turns OpenSSL off everywhere. |
| 41 |
openssl = [ |
| 42 |
"cksum?/openssl", |
| 43 |
"md5sum?/openssl", |
| 44 |
"sha1sum?/openssl", |
| 45 |
"sha224sum?/openssl", |
| 46 |
"sha256sum?/openssl", |
| 47 |
"sha384sum?/openssl", |
| 48 |
"sha512sum?/openssl", |
| 49 |
"uucore/openssl", |
| 50 |
] |
| 51 |
# "test_risky_names" == enable tests that create problematic file names (would make a network share inaccessible to Windows, breaks SVN on Mac OS, etc.) |
| 52 |
test_risky_names = [] |
| 53 |
# * only build `uudoc` when `--feature uudoc` is activated |
| 54 |
uudoc = [ |
| 55 |
"dep:clap_complete", |
| 56 |
"dep:clap_mangen", |
| 57 |
"dep:fluent-syntax", |
| 58 |
"dep:jiff", |
| 59 |
"dep:regex", |
| 60 |
"dep:zip", |
| 61 |
] |
| 62 |
selinux = ["dep:selinux"] |
| 63 |
## features |
| 64 |
# "feat_diagnostics" == render errors against the argument list with a caret |
| 65 |
# when stderr is a terminal. On by default; build with `--no-default-features` |
| 66 |
# (plus a `feat_os_*` selection) to compile the rendering — and its ariadne |
| 67 |
# dependency — out. Utilities then keep their plain one-line messages. |
| 68 |
# Enabling `uucore/diagnostics` is enough: cargo unifies features, so every |
| 69 |
# utility in the build sees it. The matching `diagnostics` feature each `uu_*` |
| 70 |
# crate declares is there for building that crate on its own, and is |
| 71 |
# deliberately not listed here. |
| 72 |
feat_diagnostics = ["uucore/diagnostics"] |
| 73 |
## Optional feature for stdbuf |
| 74 |
# "feat_external_libstdbuf" == use an external libstdbuf.so for stdbuf instead of embedding it |
| 75 |
feat_external_libstdbuf = ["stdbuf/feat_external_libstdbuf"] |
| 76 |
# "feat_systemd_logind" == enable feat_systemd_logind support for utmpx replacement |
| 77 |
feat_systemd_logind = [ |
| 78 |
"pinky/feat_systemd_logind", |
| 79 |
"uptime/feat_systemd_logind", |
| 80 |
"users/feat_systemd_logind", |
| 81 |
"uucore/feat_systemd_logind", |
| 82 |
"who/feat_systemd_logind", |
| 83 |
] |
| 84 |
# "feat_selinux" == enable support for SELinux Security Context (by using `--features feat_selinux`) |
| 85 |
# NOTE: |
| 86 |
# * The selinux(-sys) crate requires `libselinux` headers and shared library to be accessible in the C toolchain at compile time. |
| 87 |
# * Running a uutils compiled with `feat_selinux` requires an SELinux enabled Kernel at run time. |
| 88 |
feat_selinux = [ |
| 89 |
"cp/selinux", |
| 90 |
"feat_require_selinux", |
| 91 |
"id/selinux", |
| 92 |
"install/selinux", |
| 93 |
"ls/selinux", |
| 94 |
"mkdir/selinux", |
| 95 |
"mkfifo/selinux", |
| 96 |
"mknod/selinux", |
| 97 |
"selinux", |
| 98 |
"stat/selinux", |
| 99 |
] |
| 100 |
# "feat_smack" == enable support for SMACK Security Context (by using `--features feat_smack`) |
| 101 |
# NOTE: |
| 102 |
# * Running a uutils compiled with `feat_smack` requires a SMACK enabled Kernel at run time. |
| 103 |
feat_smack = [ |
| 104 |
"id/smack", |
| 105 |
"ls/smack", |
| 106 |
"mkdir/smack", |
| 107 |
"mkfifo/smack", |
| 108 |
"mknod/smack", |
| 109 |
] |
| 110 |
## |
| 111 |
## feature sets |
| 112 |
## (common/core and Tier1) feature sets |
| 113 |
# "feat_common_core" == baseline core set of utilities which can be built/run on most targets |
| 114 |
feat_common_core = [ |
| 115 |
"arch", |
| 116 |
"base32", |
| 117 |
"base64", |
| 118 |
"basename", |
| 119 |
"basenc", |
| 120 |
"cat", |
| 121 |
"cksum", |
| 122 |
"b2sum", |
| 123 |
"md5sum", |
| 124 |
"nice", |
| 125 |
"sha1sum", |
| 126 |
"sha224sum", |
| 127 |
"sha256sum", |
| 128 |
"sha384sum", |
| 129 |
"sha512sum", |
| 130 |
"comm", |
| 131 |
"cp", |
| 132 |
"csplit", |
| 133 |
"cut", |
| 134 |
"date", |
| 135 |
"dd", |
| 136 |
"dir", |
| 137 |
"dircolors", |
| 138 |
"dirname", |
| 139 |
"echo", |
| 140 |
"expand", |
| 141 |
"expr", |
| 142 |
"factor", |
| 143 |
"false", |
| 144 |
"fmt", |
| 145 |
"fold", |
| 146 |
"head", |
| 147 |
"hostid", |
| 148 |
"join", |
| 149 |
"link", |
| 150 |
"ln", |
| 151 |
"ls", |
| 152 |
"mkdir", |
| 153 |
"mktemp", |
| 154 |
"mv", |
| 155 |
"nl", |
| 156 |
"numfmt", |
| 157 |
"od", |
| 158 |
"paste", |
| 159 |
"pathchk", |
| 160 |
"pr", |
| 161 |
"printenv", |
| 162 |
"printf", |
| 163 |
"ptx", |
| 164 |
"pwd", |
| 165 |
"readlink", |
| 166 |
"realpath", |
| 167 |
"rm", |
| 168 |
"rmdir", |
| 169 |
"seq", |
| 170 |
"shred", |
| 171 |
"shuf", |
| 172 |
"sleep", |
| 173 |
"sort", |
| 174 |
"split", |
| 175 |
"sum", |
| 176 |
"tail", |
| 177 |
"tee", |
| 178 |
"test", |
| 179 |
"touch", |
| 180 |
"tr", |
| 181 |
"true", |
| 182 |
"truncate", |
| 183 |
"tsort", |
| 184 |
"tty", |
| 185 |
"uname", |
| 186 |
"unexpand", |
| 187 |
"uniq", |
| 188 |
"unlink", |
| 189 |
"vdir", |
| 190 |
"wc", |
| 191 |
"yes", |
| 192 |
] |
| 193 |
# "feat_Tier1" == expanded set of utilities which can be built/run on the usual rust "Tier 1" target platforms (ref: <https://forge.rust-lang.org/release/platform-support.html>) |
| 194 |
feat_Tier1 = [ |
| 195 |
"feat_common_core", |
| 196 |
"df", |
| 197 |
"du", |
| 198 |
"env", |
| 199 |
"hostname", |
| 200 |
"kill", |
| 201 |
"nohup", |
| 202 |
"nproc", |
| 203 |
"more", |
| 204 |
"sync", |
| 205 |
"tac", |
| 206 |
"timeout", |
| 207 |
"uptime", |
| 208 |
"whoami", |
| 209 |
] |
| 210 |
## (primary platforms) feature sets |
| 211 |
# "feat_wasm" == set of utilities which can be built for wasm target |
| 212 |
# We don't need to support all of wasm targets. So the ambiguous name is used at here |
| 213 |
feat_wasm = ["feat_common_core", "nproc"] |
| 214 |
# "feat_os_unix" == set of utilities which can be built/run on modern/usual *nix platforms. |
| 215 |
feat_os_unix = [ |
| 216 |
"feat_Tier1", |
| 217 |
# |
| 218 |
"feat_require_unix", |
| 219 |
"feat_require_unix_utmpx", |
| 220 |
] |
| 221 |
# "feat_os_unix_musl" == set of utilities which can be built/run on targets binding to the "musl" library (ref: <https://musl.libc.org/about.html>) |
| 222 |
# It excludes stdbuf due to cdylib limitations (https://github.com/rust-lang/rust/issues/82193) |
| 223 |
feat_os_unix_musl = [ |
| 224 |
"feat_Tier1", |
| 225 |
# |
| 226 |
"feat_require_unix_musl", |
| 227 |
"feat_require_unix_utmpx", |
| 228 |
] |
| 229 |
# "feat_os_windows" == set of utilities which can be built/run on modern windows platforms |
| 230 |
feat_os_windows = ["feat_Tier1", "stdbuf"] |
| 231 |
## (secondary platforms) feature sets |
| 232 |
# "feat_os_unix_gnueabihf" == set of utilities which can be built/run on the "arm-unknown-linux-gnueabihf" target (ARMv6 Linux [hardfloat]) |
| 233 |
feat_os_unix_gnueabihf = [ |
| 234 |
"feat_Tier1", |
| 235 |
# |
| 236 |
"feat_require_unix", |
| 237 |
"feat_require_unix_utmpx", |
| 238 |
] |
| 239 |
feat_os_unix_android = [ |
| 240 |
"feat_Tier1", |
| 241 |
# |
| 242 |
"feat_require_unix", |
| 243 |
] |
| 244 |
## feature sets with requirements (restricting cross-platform availability) |
| 245 |
# |
| 246 |
# ** NOTE: these `feat_require_...` sets should be minimized as much as possible to encourage cross-platform availability of utilities |
| 247 |
# |
| 248 |
# "feat_require_unix" == set of utilities requiring support which is only available on unix platforms |
| 249 |
feat_require_unix = ["feat_require_unix_core", "stdbuf"] |
| 250 |
# "feat_require_unix_musl" == set of utilities requiring unix support, excluding stdbuf (cdylib not supported on musl) |
| 251 |
feat_require_unix_musl = ["feat_require_unix_core"] |
| 252 |
# "feat_require_unix_core" == core unix utilities (shared between regular unix and musl) |
| 253 |
feat_require_unix_core = [ |
| 254 |
"chgrp", |
| 255 |
"chmod", |
| 256 |
"chown", |
| 257 |
"chroot", |
| 258 |
"groups", |
| 259 |
"id", |
| 260 |
"install", |
| 261 |
"logname", |
| 262 |
"mkfifo", |
| 263 |
"mknod", |
| 264 |
"stat", |
| 265 |
"stty", |
| 266 |
] |
| 267 |
# "feat_require_unix_utmpx" == set of utilities requiring unix utmp/utmpx support |
| 268 |
# * ref: <https://wiki.musl-libc.org/faq.html#Q:-Why-is-the-utmp/wtmp-functionality-only-implemented-as-stubs?> |
| 269 |
feat_require_unix_utmpx = ["pinky", "uptime", "users", "who"] |
| 270 |
# "feat_require_selinux" == set of utilities depending on SELinux. |
| 271 |
feat_require_selinux = ["chcon", "runcon"] |
| 272 |
## (alternate/newer/smaller platforms) feature sets |
| 273 |
# "feat_os_unix_fuchsia" == set of utilities which can be built/run on the "Fuchsia" OS (refs: <https://fuchsia.dev>; <https://en.wikipedia.org/wiki/Google_Fuchsia>) |
| 274 |
feat_os_unix_fuchsia = [ |
| 275 |
"feat_common_core", |
| 276 |
# |
| 277 |
"chgrp", |
| 278 |
"chmod", |
| 279 |
"chown", |
| 280 |
"du", |
| 281 |
"groups", |
| 282 |
"install", |
| 283 |
"logname", |
| 284 |
"mkfifo", |
| 285 |
"mknod", |
| 286 |
"unlink", |
| 287 |
] |
| 288 |
# "feat_os_unix_redox" == set of utilities which can be built/run on "Redox OS" (refs: <https://www.redox-os.org>; <https://en.wikipedia.org/wiki/Redox_(operating_system)>) |
| 289 |
feat_os_unix_redox = [ |
| 290 |
"feat_common_core", |
| 291 |
# |
| 292 |
"chmod", |
| 293 |
"stat", |
| 294 |
] |
| 295 |
## |
| 296 |
# * bypass/override ~ translate 'test' feature name to avoid dependency collision with rust core 'test' crate (o/w surfaces as compiler errors during testing) |
| 297 |
test = ["uu_test"] |
| 298 |
|
| 299 |
[workspace] |
| 300 |
resolver = "3" |
| 301 |
members = [ |
| 302 |
".", |
| 303 |
"src/uu/*", |
| 304 |
"src/uu/stdbuf/src/libstdbuf", |
| 305 |
"src/uucore", |
| 306 |
"src/uucore_procs", |
| 307 |
"tests/uutests", |
| 308 |
# "fuzz", # TODO |
| 309 |
] |
| 310 |
|
| 311 |
[workspace.package] |
| 312 |
categories = ["command-line-utilities"] |
| 313 |
edition = "2024" |
| 314 |
rust-version = "1.88.0" |
| 315 |
homepage = "https://github.com/uutils/coreutils" |
| 316 |
keywords = ["coreutils", "uutils", "cross-platform", "cli", "utility"] |
| 317 |
license = "MIT" |
| 318 |
readme = "README.package.md" |
| 319 |
version = "0.12.0" |
| 320 |
|
| 321 |
[workspace.dependencies] |
| 322 |
ansi-width = "0.1.0" |
| 323 |
# The diagnostics rewrite ariadne's output by row number, so a release that |
| 324 |
# changes the shape of a report is a breaking change here even when it is not |
| 325 |
# one for ariadne. `uucore`'s `the_rendered_report_has_the_row_shape_the_rewriting_assumes` |
| 326 |
# is what catches it; keep the bound tight enough that only patch releases |
| 327 |
# arrive without one running. |
| 328 |
ariadne = "0.6.0" |
| 329 |
base64-simd = "0.8" |
| 330 |
bigdecimal = "0.4" |
| 331 |
bstr = { version = "1.9.1", default-features = false, features = ["std"] } |
| 332 |
bytecount = "0.6.8" |
| 333 |
cfg_aliases = "0.2.2" |
| 334 |
clap = { version = "4.5", features = ["wrap_help", "cargo", "color"] } |
| 335 |
clap_complete = "4.4" |
| 336 |
clap_mangen = "0.3" |
| 337 |
crossterm = { version = "0.29.0", default-features = false } |
| 338 |
ctor = "1.0.0" |
| 339 |
ctrlc = { version = "3.5.2", features = ["termination"] } |
| 340 |
data-encoding = "2.6" |
| 341 |
data-encoding-macro = "0.1.15" |
| 342 |
divan = { package = "codspeed-divan-compat", version = "5.0.0" } |
| 343 |
dns-lookup = { version = "4.0.0" } |
| 344 |
dunce = "1.0.4" |
| 345 |
filetime = "0.2.29" |
| 346 |
foldhash = "0.2.0" |
| 347 |
gcd = "2.3" |
| 348 |
glob = "0.3.1" |
| 349 |
half = "2.4.1" |
| 350 |
hashbrown = '0.17.1' |
| 351 |
hex-literal = "1.0.0" |
| 352 |
hostname = "0.4" |
| 353 |
icu_calendar = { version = "2.0.0", default-features = false } |
| 354 |
icu_collator = { version = "2.0.0", default-features = false } |
| 355 |
icu_datetime = { version = "2.0.0", default-features = false } |
| 356 |
icu_decimal = { version = "2.0.0", default-features = false } |
| 357 |
icu_locale = { version = "2.0.0", default-features = false } |
| 358 |
icu_provider = { version = "2.0.0", default-features = false } |
| 359 |
indicatif = "0.18.0" |
| 360 |
itertools = "0.15.0" |
| 361 |
itoa = "1.0.15" |
| 362 |
jiff = "0.2.18" |
| 363 |
jiff-icu = "0.2.2" |
| 364 |
jiff-tzdb = "0.1" |
| 365 |
libc = "0.2.186" |
| 366 |
lscolors = { version = "0.21.0", default-features = false, features = [ |
| 367 |
"gnu_legacy", |
| 368 |
] } |
| 369 |
memchr = "2.7.2" |
| 370 |
memmap2 = "0.9.4" |
| 371 |
nix = { version = "0.31.3", default-features = false } |
| 372 |
nom = "8.0.0" |
| 373 |
notify = { version = "8.2.0", features = ["macos_kqueue"] } |
| 374 |
num-bigint = "0.4.4" |
| 375 |
num-prime = "0.5.0" |
| 376 |
num-traits = "0.2.19" |
| 377 |
fancy-regex = { version = "0.19.2", default-features = false, features = [ |
| 378 |
"std", |
| 379 |
"unicode", |
| 380 |
"leftmost_longest", |
| 381 |
] } |
| 382 |
os_display = "0.1.3" |
| 383 |
parse_datetime = "0.16.0" |
| 384 |
phf = "0.14.0" |
| 385 |
phf_codegen = "0.14.0" |
| 386 |
platform-info = "2.0.3" |
| 387 |
pretty_assertions = "1.4.1" |
| 388 |
proc-macro2 = "1.0.81" |
| 389 |
procfs = "0.18" |
| 390 |
rand = { version = "0.10.1", features = ["std_rng"] } |
| 391 |
rand_chacha = { version = "0.10.0" } |
| 392 |
rayon = "1.10" |
| 393 |
regex = "1.10.4" |
| 394 |
rlimit = "0.11.0" |
| 395 |
rstest = "0.27.0" |
| 396 |
rstest_reuse = "0.7.0" |
| 397 |
rustc-hash = "2.1.1" |
| 398 |
rust-ini = "0.21.0" |
| 399 |
rustix = { version = "1.1.4", default-features = false } |
| 400 |
self_cell = "1.0.4" |
| 401 |
selinux = "0.6" |
| 402 |
tempfile = "3.15.0" |
| 403 |
terminal_size = "0.4.0" |
| 404 |
textwrap = { version = "0.16.1", features = ["terminal_size"] } |
| 405 |
thiserror = "2.0.3" |
| 406 |
time = { version = "0.3.36" } |
| 407 |
quote = "1.0.36" |
| 408 |
unicode-width = "0.2.0" |
| 409 |
unindent = "0.2.3" |
| 410 |
unit-prefix = "0.5" |
| 411 |
utmp-classic = "0.1.6" |
| 412 |
uutils_term_grid = "0.8" |
| 413 |
walkdir = "2.5" |
| 414 |
wild = "2.2.1" |
| 415 |
windows-sys = { version = "0.61.0", default-features = false } |
| 416 |
xattr = "1.3.1" |
| 417 |
z85 = "3.0.5" |
| 418 |
zip = { version = "8.0.0", default-features = false, features = ["deflate"] } |
| 419 |
|
| 420 |
hex = "0.4.3" |
| 421 |
md-5 = { version = "0.11.0", default-features = false, features = ["alloc"] } |
| 422 |
sha1 = { version = "0.11.0", default-features = false, features = ["alloc"] } |
| 423 |
sha2 = { version = "0.11.0", default-features = false, features = ["alloc"] } |
| 424 |
sha3 = { version = "0.12.0", default-features = false, features = ["alloc"] } |
| 425 |
shake = "0.1.0" |
| 426 |
blake2b_simd = "1.0.2" |
| 427 |
blake3 = "1.5.1" |
| 428 |
sm3 = { version = "0.5.0", default-features = false, features = ["alloc"] } |
| 429 |
crc-fast = { version = "1.5.0", default-features = false } |
| 430 |
digest = "0.11.0" |
| 431 |
openssl = { version = "0.10" } |
| 432 |
|
| 433 |
# Fluent dependencies |
| 434 |
fluent = "0.17.0" |
| 435 |
unic-langid = "0.9.6" |
| 436 |
fluent-syntax = "0.12.0" |
| 437 |
|
| 438 |
uucore = { version = "0.12.0", path = "src/uucore" } |
| 439 |
uucore_procs = { version = "0.12.0", path = "src/uucore_procs" } |
| 440 |
uu_ls = { version = "0.12.0", path = "src/uu/ls" } |
| 441 |
uu_base32 = { version = "0.12.0", path = "src/uu/base32" } |
| 442 |
uu_checksum_common = { version = "0.12.0", path = "src/uu/checksum_common" } |
| 443 |
uutests = { version = "0.12.0", path = "tests/uutests" } |
| 444 |
|
| 445 |
# This is the linting configuration for all crates. |
| 446 |
# In order to use these, all crates have `[lints] workspace = true` section. |
| 447 |
[workspace.lints.rust] |
| 448 |
# Introduced to suppress a warning from the from_iter_instead_of_collect lint |
| 449 |
# which got deprecated with Rust 1.98. |
| 450 |
# TODO reconsider whether we still need this setting when we have a MSRV >= 1.98 |
| 451 |
renamed_and_removed_lints = { level = "allow", priority = -1 } |
| 452 |
# Allow "fuzzing" as a "cfg" condition name and "cygwin" as a value for "target_os" |
| 453 |
# https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html |
| 454 |
unexpected_cfgs = { level = "warn", check-cfg = [ |
| 455 |
'cfg(fuzzing)', |
| 456 |
'cfg(pgo_training)', |
| 457 |
'cfg(target_os, values("cygwin"))', |
| 458 |
'cfg(wasi_runner)', |
| 459 |
] } |
| 460 |
unused_qualifications = "warn" |
| 461 |
|
| 462 |
[workspace.lints.clippy] |
| 463 |
# The counts were generated with this command: |
| 464 |
# cargo clippy --all-targets --workspace --message-format=json --quiet \ |
| 465 |
# | jq -r '.message.code.code | select(. != null and startswith("clippy::"))' \ |
| 466 |
# | sort | uniq -c | sort -h -r |
| 467 |
# |
| 468 |
all = { level = "warn", priority = -1 } |
| 469 |
cargo = { level = "warn", priority = -1 } |
| 470 |
pedantic = { level = "warn", priority = -1 } |
| 471 |
use_self = "warn" # nursery lint |
| 472 |
cargo_common_metadata = "allow" # 3240 |
| 473 |
multiple_crate_versions = "allow" # 2882 |
| 474 |
missing_errors_doc = "allow" # 1572 |
| 475 |
missing_panics_doc = "allow" # 946 |
| 476 |
must_use_candidate = "allow" # 322 |
| 477 |
cast_possible_truncation = "allow" # 122 |
| 478 |
too_many_lines = "allow" # 101 |
| 479 |
cast_possible_wrap = "allow" # 78 |
| 480 |
cast_sign_loss = "allow" # 70 |
| 481 |
struct_excessive_bools = "allow" # 68 |
| 482 |
cast_precision_loss = "allow" # 52 |
| 483 |
cast_lossless = "allow" # 35 |
| 484 |
ignored_unit_patterns = "allow" # 21 |
| 485 |
similar_names = "allow" # 20 |
| 486 |
needless_pass_by_value = "allow" # 16 |
| 487 |
float_cmp = "allow" # 12 |
| 488 |
return_self_not_must_use = "allow" # 8 |
| 489 |
inline_always = "allow" # 6 |
| 490 |
fn_params_excessive_bools = "allow" # 6 |
| 491 |
should_panic_without_expect = "allow" # 2 |
| 492 |
|
| 493 |
doc_markdown = "allow" |
| 494 |
unused_self = "allow" |
| 495 |
enum_glob_use = "allow" |
| 496 |
unnested_or_patterns = "allow" |
| 497 |
implicit_hasher = "allow" |
| 498 |
doc_link_with_quotes = "allow" |
| 499 |
format_push_string = "allow" |
| 500 |
flat_map_option = "allow" |
| 501 |
# TODO lint is deprecated since Rust 1.98, can be removed when we have a MSRV >= 1.98 |
| 502 |
from_iter_instead_of_collect = "allow" |
| 503 |
large_types_passed_by_value = "allow" |
| 504 |
|
| 505 |
[workspace.metadata.cargo-shear] |
| 506 |
ignored = ["clap", "fluent", "libstdbuf"] |
| 507 |
|
| 508 |
[dependencies] |
| 509 |
clap.workspace = true |
| 510 |
clap_complete = { workspace = true, optional = true } |
| 511 |
clap_mangen = { workspace = true, optional = true } |
| 512 |
fluent-syntax = { workspace = true, optional = true } |
| 513 |
itertools.workspace = true |
| 514 |
jiff = { workspace = true, optional = true } |
| 515 |
phf.workspace = true |
| 516 |
regex = { workspace = true, optional = true } |
| 517 |
textwrap.workspace = true |
| 518 |
uucore.workspace = true |
| 519 |
zip = { workspace = true, optional = true } |
| 520 |
|
| 521 |
|
| 522 |
# * uutils |
| 523 |
uu_test = { optional = true, version = "0.12.0", path = "src/uu/test" } |
| 524 |
# |
| 525 |
arch = { optional = true, version = "0.12.0", package = "uu_arch", path = "src/uu/arch" } |
| 526 |
base32 = { optional = true, version = "0.12.0", package = "uu_base32", path = "src/uu/base32" } |
| 527 |
base64 = { optional = true, version = "0.12.0", package = "uu_base64", path = "src/uu/base64" } |
| 528 |
basename = { optional = true, version = "0.12.0", package = "uu_basename", path = "src/uu/basename" } |
| 529 |
basenc = { optional = true, version = "0.12.0", package = "uu_basenc", path = "src/uu/basenc" } |
| 530 |
cat = { optional = true, version = "0.12.0", package = "uu_cat", path = "src/uu/cat" } |
| 531 |
chgrp = { optional = true, version = "0.12.0", package = "uu_chgrp", path = "src/uu/chgrp" } |
| 532 |
chmod = { optional = true, version = "0.12.0", package = "uu_chmod", path = "src/uu/chmod" } |
| 533 |
chown = { optional = true, version = "0.12.0", package = "uu_chown", path = "src/uu/chown" } |
| 534 |
chroot = { optional = true, version = "0.12.0", package = "uu_chroot", path = "src/uu/chroot" } |
| 535 |
cksum = { optional = true, version = "0.12.0", package = "uu_cksum", path = "src/uu/cksum" } |
| 536 |
b2sum = { optional = true, version = "0.12.0", package = "uu_b2sum", path = "src/uu/b2sum" } |
| 537 |
md5sum = { optional = true, version = "0.12.0", package = "uu_md5sum", path = "src/uu/md5sum" } |
| 538 |
sha1sum = { optional = true, version = "0.12.0", package = "uu_sha1sum", path = "src/uu/sha1sum" } |
| 539 |
sha224sum = { optional = true, version = "0.12.0", package = "uu_sha224sum", path = "src/uu/sha224sum" } |
| 540 |
sha256sum = { optional = true, version = "0.12.0", package = "uu_sha256sum", path = "src/uu/sha256sum" } |
| 541 |
sha384sum = { optional = true, version = "0.12.0", package = "uu_sha384sum", path = "src/uu/sha384sum" } |
| 542 |
sha512sum = { optional = true, version = "0.12.0", package = "uu_sha512sum", path = "src/uu/sha512sum" } |
| 543 |
comm = { optional = true, version = "0.12.0", package = "uu_comm", path = "src/uu/comm" } |
| 544 |
cp = { optional = true, version = "0.12.0", package = "uu_cp", path = "src/uu/cp" } |
| 545 |
csplit = { optional = true, version = "0.12.0", package = "uu_csplit", path = "src/uu/csplit" } |
| 546 |
cut = { optional = true, version = "0.12.0", package = "uu_cut", path = "src/uu/cut" } |
| 547 |
date = { optional = true, version = "0.12.0", package = "uu_date", path = "src/uu/date" } |
| 548 |
dd = { optional = true, version = "0.12.0", package = "uu_dd", path = "src/uu/dd" } |
| 549 |
df = { optional = true, version = "0.12.0", package = "uu_df", path = "src/uu/df" } |
| 550 |
dir = { optional = true, version = "0.12.0", package = "uu_dir", path = "src/uu/dir" } |
| 551 |
dircolors = { optional = true, version = "0.12.0", package = "uu_dircolors", path = "src/uu/dircolors" } |
| 552 |
dirname = { optional = true, version = "0.12.0", package = "uu_dirname", path = "src/uu/dirname" } |
| 553 |
du = { optional = true, version = "0.12.0", package = "uu_du", path = "src/uu/du" } |
| 554 |
echo = { optional = true, version = "0.12.0", package = "uu_echo", path = "src/uu/echo" } |
| 555 |
env = { optional = true, version = "0.12.0", package = "uu_env", path = "src/uu/env" } |
| 556 |
expand = { optional = true, version = "0.12.0", package = "uu_expand", path = "src/uu/expand" } |
| 557 |
expr = { optional = true, version = "0.12.0", package = "uu_expr", path = "src/uu/expr" } |
| 558 |
factor = { optional = true, version = "0.12.0", package = "uu_factor", path = "src/uu/factor" } |
| 559 |
false = { optional = true, version = "0.12.0", package = "uu_false", path = "src/uu/false" } |
| 560 |
fmt = { optional = true, version = "0.12.0", package = "uu_fmt", path = "src/uu/fmt" } |
| 561 |
fold = { optional = true, version = "0.12.0", package = "uu_fold", path = "src/uu/fold" } |
| 562 |
groups = { optional = true, version = "0.12.0", package = "uu_groups", path = "src/uu/groups" } |
| 563 |
head = { optional = true, version = "0.12.0", package = "uu_head", path = "src/uu/head" } |
| 564 |
hostid = { optional = true, version = "0.12.0", package = "uu_hostid", path = "src/uu/hostid" } |
| 565 |
hostname = { optional = true, version = "0.12.0", package = "uu_hostname", path = "src/uu/hostname" } |
| 566 |
id = { optional = true, version = "0.12.0", package = "uu_id", path = "src/uu/id" } |
| 567 |
install = { optional = true, version = "0.12.0", package = "uu_install", path = "src/uu/install" } |
| 568 |
join = { optional = true, version = "0.12.0", package = "uu_join", path = "src/uu/join" } |
| 569 |
kill = { optional = true, version = "0.12.0", package = "uu_kill", path = "src/uu/kill" } |
| 570 |
link = { optional = true, version = "0.12.0", package = "uu_link", path = "src/uu/link" } |
| 571 |
ln = { optional = true, version = "0.12.0", package = "uu_ln", path = "src/uu/ln" } |
| 572 |
ls = { optional = true, version = "0.12.0", package = "uu_ls", path = "src/uu/ls" } |
| 573 |
logname = { optional = true, version = "0.12.0", package = "uu_logname", path = "src/uu/logname" } |
| 574 |
mkdir = { optional = true, version = "0.12.0", package = "uu_mkdir", path = "src/uu/mkdir" } |
| 575 |
mkfifo = { optional = true, version = "0.12.0", package = "uu_mkfifo", path = "src/uu/mkfifo" } |
| 576 |
mknod = { optional = true, version = "0.12.0", package = "uu_mknod", path = "src/uu/mknod" } |
| 577 |
mktemp = { optional = true, version = "0.12.0", package = "uu_mktemp", path = "src/uu/mktemp" } |
| 578 |
more = { optional = true, version = "0.12.0", package = "uu_more", path = "src/uu/more" } |
| 579 |
mv = { optional = true, version = "0.12.0", package = "uu_mv", path = "src/uu/mv" } |
| 580 |
nice = { optional = true, version = "0.12.0", package = "uu_nice", path = "src/uu/nice" } |
| 581 |
nl = { optional = true, version = "0.12.0", package = "uu_nl", path = "src/uu/nl" } |
| 582 |
nohup = { optional = true, version = "0.12.0", package = "uu_nohup", path = "src/uu/nohup" } |
| 583 |
nproc = { optional = true, version = "0.12.0", package = "uu_nproc", path = "src/uu/nproc" } |
| 584 |
numfmt = { optional = true, version = "0.12.0", package = "uu_numfmt", path = "src/uu/numfmt" } |
| 585 |
od = { optional = true, version = "0.12.0", package = "uu_od", path = "src/uu/od" } |
| 586 |
paste = { optional = true, version = "0.12.0", package = "uu_paste", path = "src/uu/paste" } |
| 587 |
pathchk = { optional = true, version = "0.12.0", package = "uu_pathchk", path = "src/uu/pathchk" } |
| 588 |
pinky = { optional = true, version = "0.12.0", package = "uu_pinky", path = "src/uu/pinky" } |
| 589 |
pr = { optional = true, version = "0.12.0", package = "uu_pr", path = "src/uu/pr" } |
| 590 |
printenv = { optional = true, version = "0.12.0", package = "uu_printenv", path = "src/uu/printenv" } |
| 591 |
printf = { optional = true, version = "0.12.0", package = "uu_printf", path = "src/uu/printf" } |
| 592 |
ptx = { optional = true, version = "0.12.0", package = "uu_ptx", path = "src/uu/ptx" } |
| 593 |
pwd = { optional = true, version = "0.12.0", package = "uu_pwd", path = "src/uu/pwd" } |
| 594 |
readlink = { optional = true, version = "0.12.0", package = "uu_readlink", path = "src/uu/readlink" } |
| 595 |
realpath = { optional = true, version = "0.12.0", package = "uu_realpath", path = "src/uu/realpath" } |
| 596 |
rm = { optional = true, version = "0.12.0", package = "uu_rm", path = "src/uu/rm" } |
| 597 |
rmdir = { optional = true, version = "0.12.0", package = "uu_rmdir", path = "src/uu/rmdir" } |
| 598 |
seq = { optional = true, version = "0.12.0", package = "uu_seq", path = "src/uu/seq" } |
| 599 |
shred = { optional = true, version = "0.12.0", package = "uu_shred", path = "src/uu/shred" } |
| 600 |
shuf = { optional = true, version = "0.12.0", package = "uu_shuf", path = "src/uu/shuf" } |
| 601 |
sleep = { optional = true, version = "0.12.0", package = "uu_sleep", path = "src/uu/sleep" } |
| 602 |
sort = { optional = true, version = "0.12.0", package = "uu_sort", path = "src/uu/sort" } |
| 603 |
split = { optional = true, version = "0.12.0", package = "uu_split", path = "src/uu/split" } |
| 604 |
stat = { optional = true, version = "0.12.0", package = "uu_stat", path = "src/uu/stat" } |
| 605 |
stdbuf = { optional = true, version = "0.12.0", package = "uu_stdbuf", path = "src/uu/stdbuf" } |
| 606 |
stty = { optional = true, version = "0.12.0", package = "uu_stty", path = "src/uu/stty" } |
| 607 |
sum = { optional = true, version = "0.12.0", package = "uu_sum", path = "src/uu/sum" } |
| 608 |
sync = { optional = true, version = "0.12.0", package = "uu_sync", path = "src/uu/sync" } |
| 609 |
tac = { optional = true, version = "0.12.0", package = "uu_tac", path = "src/uu/tac" } |
| 610 |
tail = { optional = true, version = "0.12.0", package = "uu_tail", path = "src/uu/tail" } |
| 611 |
tee = { optional = true, version = "0.12.0", package = "uu_tee", path = "src/uu/tee" } |
| 612 |
timeout = { optional = true, version = "0.12.0", package = "uu_timeout", path = "src/uu/timeout" } |
| 613 |
touch = { optional = true, version = "0.12.0", package = "uu_touch", path = "src/uu/touch" } |
| 614 |
tr = { optional = true, version = "0.12.0", package = "uu_tr", path = "src/uu/tr" } |
| 615 |
true = { optional = true, version = "0.12.0", package = "uu_true", path = "src/uu/true" } |
| 616 |
truncate = { optional = true, version = "0.12.0", package = "uu_truncate", path = "src/uu/truncate" } |
| 617 |
tsort = { optional = true, version = "0.12.0", package = "uu_tsort", path = "src/uu/tsort" } |
| 618 |
tty = { optional = true, version = "0.12.0", package = "uu_tty", path = "src/uu/tty" } |
| 619 |
uname = { optional = true, version = "0.12.0", package = "uu_uname", path = "src/uu/uname" } |
| 620 |
unexpand = { optional = true, version = "0.12.0", package = "uu_unexpand", path = "src/uu/unexpand" } |
| 621 |
uniq = { optional = true, version = "0.12.0", package = "uu_uniq", path = "src/uu/uniq" } |
| 622 |
unlink = { optional = true, version = "0.12.0", package = "uu_unlink", path = "src/uu/unlink" } |
| 623 |
uptime = { optional = true, version = "0.12.0", package = "uu_uptime", path = "src/uu/uptime" } |
| 624 |
users = { optional = true, version = "0.12.0", package = "uu_users", path = "src/uu/users" } |
| 625 |
vdir = { optional = true, version = "0.12.0", package = "uu_vdir", path = "src/uu/vdir" } |
| 626 |
wc = { optional = true, version = "0.12.0", package = "uu_wc", path = "src/uu/wc" } |
| 627 |
who = { optional = true, version = "0.12.0", package = "uu_who", path = "src/uu/who" } |
| 628 |
whoami = { optional = true, version = "0.12.0", package = "uu_whoami", path = "src/uu/whoami" } |
| 629 |
yes = { optional = true, version = "0.12.0", package = "uu_yes", path = "src/uu/yes" } |
| 630 |
|
| 631 |
[dev-dependencies] |
| 632 |
ctor.workspace = true |
| 633 |
filetime.workspace = true |
| 634 |
glob.workspace = true |
| 635 |
jiff.workspace = true |
| 636 |
libc.workspace = true |
| 637 |
bytecount.workspace = true |
| 638 |
num-prime.workspace = true |
| 639 |
pretty_assertions.workspace = true |
| 640 |
rand.workspace = true |
| 641 |
regex.workspace = true |
| 642 |
rustc-hash.workspace = true |
| 643 |
sha1 = { workspace = true } |
| 644 |
tempfile.workspace = true |
| 645 |
time = { workspace = true, features = ["local-offset"] } |
| 646 |
unicode-width.workspace = true |
| 647 |
unindent.workspace = true |
| 648 |
uutests.workspace = true |
| 649 |
uucore = { workspace = true, features = [ |
| 650 |
"mode", |
| 651 |
"entries", |
| 652 |
"pipes", |
| 653 |
"process", |
| 654 |
"signals", |
| 655 |
"utmpx", |
| 656 |
] } |
| 657 |
walkdir.workspace = true |
| 658 |
hex-literal.workspace = true |
| 659 |
rstest.workspace = true |
| 660 |
rstest_reuse.workspace = true |
| 661 |
|
| 662 |
[target.'cfg(all(any(target_os = "linux", all(target_os = "android", target_pointer_width = "64")), not(target_env = "musl")))'.dependencies] |
| 663 |
# raw-backend's linux_execfn is not supported on linux < 6.4 if /proc is not mounted. So use-libc-auxv is needed |
| 664 |
rustix = { workspace = true, features = ["param", "use-libc-auxv"] } |
| 665 |
|
| 666 |
[target.'cfg(any(target_os = "linux", target_os = "android"))'.dependencies] |
| 667 |
selinux = { workspace = true, optional = true } |
| 668 |
|
| 669 |
# * uutils |
| 670 |
chcon = { optional = true, version = "0.12.0", package = "uu_chcon", path = "src/uu/chcon" } |
| 671 |
runcon = { optional = true, version = "0.12.0", package = "uu_runcon", path = "src/uu/runcon" } |
| 672 |
|
| 673 |
# * pinned transitive dependencies |
| 674 |
# Not needed for now. Keep as examples: |
| 675 |
#pin_cc = { version="1.0.61, < 1.0.62", package="cc" } ## cc v1.0.62 has compiler errors for MinRustV v1.32.0, requires 1.34 (for `std::str::split_ascii_whitespace()`) |
| 676 |
|
| 677 |
[target.'cfg(unix)'.dev-dependencies] |
| 678 |
nix = { workspace = true, features = ["fs", "signal"] } |
| 679 |
rlimit = { workspace = true } |
| 680 |
rustix = { workspace = true, features = ["net", "process"] } |
| 681 |
|
| 682 |
[build-dependencies] |
| 683 |
phf_codegen.workspace = true |
| 684 |
|
| 685 |
[lints] |
| 686 |
workspace = true |
| 687 |
|
| 688 |
[[bin]] |
| 689 |
name = "coreutils" |
| 690 |
path = "src/bin/coreutils.rs" |
| 691 |
|
| 692 |
[[bin]] |
| 693 |
name = "uudoc" |
| 694 |
path = "src/bin/uudoc.rs" |
| 695 |
required-features = ["uudoc"] |
| 696 |
|
| 697 |
[profile.release] |
| 698 |
lto = "fat" |
| 699 |
panic = "abort" |
| 700 |
codegen-units = 1 |
| 701 |
|
| 702 |
# A release-like profile that is as small as possible. |
| 703 |
[profile.release-small] |
| 704 |
inherits = "release" |
| 705 |
opt-level = "z" |
| 706 |
strip = true |
| 707 |
|
| 708 |
# A release-like profile with debug info for profiling. |
| 709 |
# See https://github.com/mstange/samply . |
| 710 |
[profile.profiling] |
| 711 |
inherits = "release" |
| 712 |
panic = "unwind" |
| 713 |
debug = true |