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