Debian Codegraph @

Cargo.toml

raw ◀ ▶
2 Debian patches touch this file
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 exclude = ["debian/rust-vendor"]
302
303 [workspace.package]
304 categories = ["command-line-utilities"]
305 edition = "2024"
306 rust-version = "1.88.0"
307 homepage = "https://github.com/uutils/coreutils"
308 keywords = ["coreutils", "uutils", "cross-platform", "cli", "utility"]
309 license = "MIT"
•310 readme = "README.package.md"
311 version = "0.12.0"
312
313 [workspace.dependencies]
314 ansi-width = "0.1.0"
315 # The diagnostics rewrite ariadne's output by row number, so a release that
316 # changes the shape of a report is a breaking change here even when it is not
317 # one for ariadne. `uucore`'s `the_rendered_report_has_the_row_shape_the_rewriting_assumes`
318 # is what catches it; keep the bound tight enough that only patch releases
319 # arrive without one running.
320 ariadne = "0.6.0"
321 base64-simd = "0.8"
322 bigdecimal = "0.4"
323 bstr = { version = "1.9.1", default-features = false, features = ["std"] }
324 bytecount = "0.6.8"
325 cfg_aliases = "0.2.2"
326 clap = { version = "4.5", features = ["wrap_help", "cargo", "color"] }
327 clap_complete = "4.4"
328 clap_mangen = "0.3"
329 crossterm = { version = "0.29.0", default-features = false }
330 ctor = "1.0.0"
331 ctrlc = { version = "3.5.2", features = ["termination"] }
332 data-encoding = "2.6"
333 data-encoding-macro = "0.1.15"
334 divan = { package = "codspeed-divan-compat", version = "5.0.0" }
335 dns-lookup = { version = "4.0.0" }
336 dunce = "1.0.4"
337 filetime = "0.2.29"
338 foldhash = "0.2.0"
339 gcd = "2.3"
340 glob = "0.3.1"
341 half = "2.4.1"
342 hashbrown = '0.17.1'
343 hex-literal = "1.0.0"
344 hostname = "0.4"
345 icu_calendar = { version = "2.0.0", default-features = false }
346 icu_collator = { version = "2.0.0", default-features = false }
347 icu_datetime = { version = "2.0.0", default-features = false }
348 icu_decimal = { version = "2.0.0", default-features = false }
349 icu_locale = { version = "2.0.0", default-features = false }
350 icu_provider = { version = "2.0.0", default-features = false }
351 indicatif = "0.18.0"
352 itertools = "0.15.0"
353 itoa = "1.0.15"
354 jiff = "0.2.18"
355 jiff-icu = "0.2.2"
356 jiff-tzdb = "0.1"
357 libc = "0.2.186"
358 lscolors = { version = "0.21.0", default-features = false, features = [
359 "gnu_legacy",
360 ] }
361 memchr = "2.7.2"
362 memmap2 = "0.9.4"
363 nix = { version = "0.31.3", default-features = false }
364 nom = "8.0.0"
365 notify = { version = "8.2.0", features = ["macos_kqueue"] }
366 num-bigint = "0.4.4"
367 num-prime = "0.5.0"
368 num-traits = "0.2.19"
369 fancy-regex = { version = "0.19.2", default-features = false, features = [
370 "std",
371 "unicode",
372 "leftmost_longest",
373 ] }
374 os_display = "0.1.3"
375 parse_datetime = "0.16.0"
376 phf = "0.14.0"
377 phf_codegen = "0.14.0"
378 platform-info = "2.0.3"
379 pretty_assertions = "1.4.1"
380 proc-macro2 = "1.0.81"
381 procfs = "0.18"
382 rand = { version = "0.10.1", features = ["std_rng"] }
383 rand_chacha = { version = "0.10.0" }
384 rayon = "1.10"
385 regex = "1.10.4"
386 rlimit = "0.11.0"
387 rstest = "0.27.0"
388 rstest_reuse = "0.7.0"
389 rustc-hash = "2.1.1"
390 rust-ini = "0.21.0"
391 rustix = { version = "1.1.4", default-features = false }
392 self_cell = "1.0.4"
393 selinux = "0.6"
394 tempfile = "3.15.0"
395 terminal_size = "0.4.0"
396 textwrap = { version = "0.16.1", features = ["terminal_size"] }
397 thiserror = "2.0.3"
398 time = { version = "0.3.36" }
399 quote = "1.0.36"
400 unicode-width = "0.2.0"
401 unindent = "0.2.3"
402 unit-prefix = "0.5"
403 utmp-classic = "0.1.6"
404 uutils_term_grid = "0.8"
405 walkdir = "2.5"
406 wild = "2.2.1"
407 windows-sys = { version = "0.61.0", default-features = false }
408 xattr = "1.3.1"
409 z85 = "3.0.5"
410 zip = { version = "8.0.0", default-features = false, features = ["deflate"] }
411
412 hex = "0.4.3"
413 md-5 = { version = "0.11.0", default-features = false, features = ["alloc"] }
414 sha1 = { version = "0.11.0", default-features = false, features = ["alloc"] }
415 sha2 = { version = "0.11.0", default-features = false, features = ["alloc"] }
416 sha3 = { version = "0.12.0", default-features = false, features = ["alloc"] }
417 shake = "0.1.0"
418 blake2b_simd = "1.0.2"
419 blake3 = "1.5.1"
420 sm3 = { version = "0.5.0", default-features = false, features = ["alloc"] }
421 crc-fast = { version = "1.5.0", default-features = false }
422 digest = "0.11.0"
423 openssl = { version = "0.10" }
424
425 # Fluent dependencies
426 fluent = "0.17.0"
427 unic-langid = "0.9.6"
428 fluent-syntax = "0.12.0"
429
430 uucore = { version = "0.12.0", path = "src/uucore" }
431 uucore_procs = { version = "0.12.0", path = "src/uucore_procs" }
432 uu_ls = { version = "0.12.0", path = "src/uu/ls" }
433 uu_base32 = { version = "0.12.0", path = "src/uu/base32" }
434 uu_checksum_common = { version = "0.12.0", path = "src/uu/checksum_common" }
435 uutests = { version = "0.12.0", path = "tests/uutests" }
436
437 # This is the linting configuration for all crates.
438 # In order to use these, all crates have `[lints] workspace = true` section.
439 [workspace.lints.rust]
440 # Introduced to suppress a warning from the from_iter_instead_of_collect lint
441 # which got deprecated with Rust 1.98.
442 # TODO reconsider whether we still need this setting when we have a MSRV >= 1.98
443 renamed_and_removed_lints = { level = "allow", priority = -1 }
444 # Allow "fuzzing" as a "cfg" condition name and "cygwin" as a value for "target_os"
445 # https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html
446 unexpected_cfgs = { level = "warn", check-cfg = [
447 'cfg(fuzzing)',
448 'cfg(pgo_training)',
449 'cfg(target_os, values("cygwin"))',
450 'cfg(wasi_runner)',
451 ] }
452 unused_qualifications = "warn"
453
454 [workspace.lints.clippy]
455 # The counts were generated with this command:
456 # cargo clippy --all-targets --workspace --message-format=json --quiet \
457 # | jq -r '.message.code.code | select(. != null and startswith("clippy::"))' \
458 # | sort | uniq -c | sort -h -r
459 #
460 all = { level = "warn", priority = -1 }
461 cargo = { level = "warn", priority = -1 }
462 pedantic = { level = "warn", priority = -1 }
463 use_self = "warn" # nursery lint
464 cargo_common_metadata = "allow" # 3240
465 multiple_crate_versions = "allow" # 2882
466 missing_errors_doc = "allow" # 1572
467 missing_panics_doc = "allow" # 946
468 must_use_candidate = "allow" # 322
469 cast_possible_truncation = "allow" # 122
470 too_many_lines = "allow" # 101
471 cast_possible_wrap = "allow" # 78
472 cast_sign_loss = "allow" # 70
473 struct_excessive_bools = "allow" # 68
474 cast_precision_loss = "allow" # 52
475 cast_lossless = "allow" # 35
476 ignored_unit_patterns = "allow" # 21
477 similar_names = "allow" # 20
478 needless_pass_by_value = "allow" # 16
479 float_cmp = "allow" # 12
480 return_self_not_must_use = "allow" # 8
481 inline_always = "allow" # 6
482 fn_params_excessive_bools = "allow" # 6
483 should_panic_without_expect = "allow" # 2
484
485 doc_markdown = "allow"
486 unused_self = "allow"
487 enum_glob_use = "allow"
488 unnested_or_patterns = "allow"
489 implicit_hasher = "allow"
490 doc_link_with_quotes = "allow"
491 format_push_string = "allow"
492 flat_map_option = "allow"
493 # TODO lint is deprecated since Rust 1.98, can be removed when we have a MSRV >= 1.98
494 from_iter_instead_of_collect = "allow"
495 large_types_passed_by_value = "allow"
496
497 [workspace.metadata.cargo-shear]
498 ignored = ["clap", "fluent", "libstdbuf"]
499
500 [dependencies]
501 clap.workspace = true
502 clap_complete = { workspace = true, optional = true }
503 clap_mangen = { workspace = true, optional = true }
504 fluent-syntax = { workspace = true, optional = true }
505 itertools.workspace = true
506 jiff = { workspace = true, optional = true }
507 phf.workspace = true
508 regex = { workspace = true, optional = true }
509 textwrap.workspace = true
510 uucore.workspace = true
511 zip = { workspace = true, optional = true }
512
513
514 # * uutils
515 uu_test = { optional = true, version = "0.12.0", path = "src/uu/test" }
516 #
517 arch = { optional = true, version = "0.12.0", package = "uu_arch", path = "src/uu/arch" }
518 base32 = { optional = true, version = "0.12.0", package = "uu_base32", path = "src/uu/base32" }
519 base64 = { optional = true, version = "0.12.0", package = "uu_base64", path = "src/uu/base64" }
520 basename = { optional = true, version = "0.12.0", package = "uu_basename", path = "src/uu/basename" }
521 basenc = { optional = true, version = "0.12.0", package = "uu_basenc", path = "src/uu/basenc" }
522 cat = { optional = true, version = "0.12.0", package = "uu_cat", path = "src/uu/cat" }
523 chgrp = { optional = true, version = "0.12.0", package = "uu_chgrp", path = "src/uu/chgrp" }
524 chmod = { optional = true, version = "0.12.0", package = "uu_chmod", path = "src/uu/chmod" }
525 chown = { optional = true, version = "0.12.0", package = "uu_chown", path = "src/uu/chown" }
526 chroot = { optional = true, version = "0.12.0", package = "uu_chroot", path = "src/uu/chroot" }
527 cksum = { optional = true, version = "0.12.0", package = "uu_cksum", path = "src/uu/cksum" }
528 b2sum = { optional = true, version = "0.12.0", package = "uu_b2sum", path = "src/uu/b2sum" }
529 md5sum = { optional = true, version = "0.12.0", package = "uu_md5sum", path = "src/uu/md5sum" }
530 sha1sum = { optional = true, version = "0.12.0", package = "uu_sha1sum", path = "src/uu/sha1sum" }
531 sha224sum = { optional = true, version = "0.12.0", package = "uu_sha224sum", path = "src/uu/sha224sum" }
532 sha256sum = { optional = true, version = "0.12.0", package = "uu_sha256sum", path = "src/uu/sha256sum" }
533 sha384sum = { optional = true, version = "0.12.0", package = "uu_sha384sum", path = "src/uu/sha384sum" }
534 sha512sum = { optional = true, version = "0.12.0", package = "uu_sha512sum", path = "src/uu/sha512sum" }
535 comm = { optional = true, version = "0.12.0", package = "uu_comm", path = "src/uu/comm" }
536 cp = { optional = true, version = "0.12.0", package = "uu_cp", path = "src/uu/cp" }
537 csplit = { optional = true, version = "0.12.0", package = "uu_csplit", path = "src/uu/csplit" }
538 cut = { optional = true, version = "0.12.0", package = "uu_cut", path = "src/uu/cut" }
539 date = { optional = true, version = "0.12.0", package = "uu_date", path = "src/uu/date" }
540 dd = { optional = true, version = "0.12.0", package = "uu_dd", path = "src/uu/dd" }
541 df = { optional = true, version = "0.12.0", package = "uu_df", path = "src/uu/df" }
542 dir = { optional = true, version = "0.12.0", package = "uu_dir", path = "src/uu/dir" }
543 dircolors = { optional = true, version = "0.12.0", package = "uu_dircolors", path = "src/uu/dircolors" }
544 dirname = { optional = true, version = "0.12.0", package = "uu_dirname", path = "src/uu/dirname" }
545 du = { optional = true, version = "0.12.0", package = "uu_du", path = "src/uu/du" }
546 echo = { optional = true, version = "0.12.0", package = "uu_echo", path = "src/uu/echo" }
547 env = { optional = true, version = "0.12.0", package = "uu_env", path = "src/uu/env" }
548 expand = { optional = true, version = "0.12.0", package = "uu_expand", path = "src/uu/expand" }
549 expr = { optional = true, version = "0.12.0", package = "uu_expr", path = "src/uu/expr" }
550 factor = { optional = true, version = "0.12.0", package = "uu_factor", path = "src/uu/factor" }
551 false = { optional = true, version = "0.12.0", package = "uu_false", path = "src/uu/false" }
552 fmt = { optional = true, version = "0.12.0", package = "uu_fmt", path = "src/uu/fmt" }
553 fold = { optional = true, version = "0.12.0", package = "uu_fold", path = "src/uu/fold" }
554 groups = { optional = true, version = "0.12.0", package = "uu_groups", path = "src/uu/groups" }
555 head = { optional = true, version = "0.12.0", package = "uu_head", path = "src/uu/head" }
556 hostid = { optional = true, version = "0.12.0", package = "uu_hostid", path = "src/uu/hostid" }
557 hostname = { optional = true, version = "0.12.0", package = "uu_hostname", path = "src/uu/hostname" }
558 id = { optional = true, version = "0.12.0", package = "uu_id", path = "src/uu/id" }
559 install = { optional = true, version = "0.12.0", package = "uu_install", path = "src/uu/install" }
560 join = { optional = true, version = "0.12.0", package = "uu_join", path = "src/uu/join" }
561 kill = { optional = true, version = "0.12.0", package = "uu_kill", path = "src/uu/kill" }
562 link = { optional = true, version = "0.12.0", package = "uu_link", path = "src/uu/link" }
563 ln = { optional = true, version = "0.12.0", package = "uu_ln", path = "src/uu/ln" }
564 ls = { optional = true, version = "0.12.0", package = "uu_ls", path = "src/uu/ls" }
565 logname = { optional = true, version = "0.12.0", package = "uu_logname", path = "src/uu/logname" }
566 mkdir = { optional = true, version = "0.12.0", package = "uu_mkdir", path = "src/uu/mkdir" }
567 mkfifo = { optional = true, version = "0.12.0", package = "uu_mkfifo", path = "src/uu/mkfifo" }
568 mknod = { optional = true, version = "0.12.0", package = "uu_mknod", path = "src/uu/mknod" }
569 mktemp = { optional = true, version = "0.12.0", package = "uu_mktemp", path = "src/uu/mktemp" }
570 more = { optional = true, version = "0.12.0", package = "uu_more", path = "src/uu/more" }
571 mv = { optional = true, version = "0.12.0", package = "uu_mv", path = "src/uu/mv" }
572 nice = { optional = true, version = "0.12.0", package = "uu_nice", path = "src/uu/nice" }
573 nl = { optional = true, version = "0.12.0", package = "uu_nl", path = "src/uu/nl" }
574 nohup = { optional = true, version = "0.12.0", package = "uu_nohup", path = "src/uu/nohup" }
575 nproc = { optional = true, version = "0.12.0", package = "uu_nproc", path = "src/uu/nproc" }
576 numfmt = { optional = true, version = "0.12.0", package = "uu_numfmt", path = "src/uu/numfmt" }
577 od = { optional = true, version = "0.12.0", package = "uu_od", path = "src/uu/od" }
578 paste = { optional = true, version = "0.12.0", package = "uu_paste", path = "src/uu/paste" }
579 pathchk = { optional = true, version = "0.12.0", package = "uu_pathchk", path = "src/uu/pathchk" }
580 pinky = { optional = true, version = "0.12.0", package = "uu_pinky", path = "src/uu/pinky" }
581 pr = { optional = true, version = "0.12.0", package = "uu_pr", path = "src/uu/pr" }
582 printenv = { optional = true, version = "0.12.0", package = "uu_printenv", path = "src/uu/printenv" }
583 printf = { optional = true, version = "0.12.0", package = "uu_printf", path = "src/uu/printf" }
584 ptx = { optional = true, version = "0.12.0", package = "uu_ptx", path = "src/uu/ptx" }
585 pwd = { optional = true, version = "0.12.0", package = "uu_pwd", path = "src/uu/pwd" }
586 readlink = { optional = true, version = "0.12.0", package = "uu_readlink", path = "src/uu/readlink" }
587 realpath = { optional = true, version = "0.12.0", package = "uu_realpath", path = "src/uu/realpath" }
588 rm = { optional = true, version = "0.12.0", package = "uu_rm", path = "src/uu/rm" }
589 rmdir = { optional = true, version = "0.12.0", package = "uu_rmdir", path = "src/uu/rmdir" }
590 seq = { optional = true, version = "0.12.0", package = "uu_seq", path = "src/uu/seq" }
591 shred = { optional = true, version = "0.12.0", package = "uu_shred", path = "src/uu/shred" }
592 shuf = { optional = true, version = "0.12.0", package = "uu_shuf", path = "src/uu/shuf" }
593 sleep = { optional = true, version = "0.12.0", package = "uu_sleep", path = "src/uu/sleep" }
594 sort = { optional = true, version = "0.12.0", package = "uu_sort", path = "src/uu/sort" }
595 split = { optional = true, version = "0.12.0", package = "uu_split", path = "src/uu/split" }
596 stat = { optional = true, version = "0.12.0", package = "uu_stat", path = "src/uu/stat" }
597 stdbuf = { optional = true, version = "0.12.0", package = "uu_stdbuf", path = "src/uu/stdbuf" }
598 stty = { optional = true, version = "0.12.0", package = "uu_stty", path = "src/uu/stty" }
599 sum = { optional = true, version = "0.12.0", package = "uu_sum", path = "src/uu/sum" }
600 sync = { optional = true, version = "0.12.0", package = "uu_sync", path = "src/uu/sync" }
601 tac = { optional = true, version = "0.12.0", package = "uu_tac", path = "src/uu/tac" }
602 tail = { optional = true, version = "0.12.0", package = "uu_tail", path = "src/uu/tail" }
603 tee = { optional = true, version = "0.12.0", package = "uu_tee", path = "src/uu/tee" }
604 timeout = { optional = true, version = "0.12.0", package = "uu_timeout", path = "src/uu/timeout" }
605 touch = { optional = true, version = "0.12.0", package = "uu_touch", path = "src/uu/touch" }
606 tr = { optional = true, version = "0.12.0", package = "uu_tr", path = "src/uu/tr" }
607 true = { optional = true, version = "0.12.0", package = "uu_true", path = "src/uu/true" }
608 truncate = { optional = true, version = "0.12.0", package = "uu_truncate", path = "src/uu/truncate" }
609 tsort = { optional = true, version = "0.12.0", package = "uu_tsort", path = "src/uu/tsort" }
610 tty = { optional = true, version = "0.12.0", package = "uu_tty", path = "src/uu/tty" }
611 uname = { optional = true, version = "0.12.0", package = "uu_uname", path = "src/uu/uname" }
612 unexpand = { optional = true, version = "0.12.0", package = "uu_unexpand", path = "src/uu/unexpand" }
613 uniq = { optional = true, version = "0.12.0", package = "uu_uniq", path = "src/uu/uniq" }
614 unlink = { optional = true, version = "0.12.0", package = "uu_unlink", path = "src/uu/unlink" }
615 uptime = { optional = true, version = "0.12.0", package = "uu_uptime", path = "src/uu/uptime" }
616 users = { optional = true, version = "0.12.0", package = "uu_users", path = "src/uu/users" }
617 vdir = { optional = true, version = "0.12.0", package = "uu_vdir", path = "src/uu/vdir" }
618 wc = { optional = true, version = "0.12.0", package = "uu_wc", path = "src/uu/wc" }
619 who = { optional = true, version = "0.12.0", package = "uu_who", path = "src/uu/who" }
620 whoami = { optional = true, version = "0.12.0", package = "uu_whoami", path = "src/uu/whoami" }
621 yes = { optional = true, version = "0.12.0", package = "uu_yes", path = "src/uu/yes" }
622
623 [dev-dependencies]
624 ctor.workspace = true
625 filetime.workspace = true
626 glob.workspace = true
627 jiff.workspace = true
628 libc.workspace = true
629 bytecount.workspace = true
630 num-prime.workspace = true
631 pretty_assertions.workspace = true
632 rand.workspace = true
633 regex.workspace = true
634 rustc-hash.workspace = true
635 sha1 = { workspace = true }
636 tempfile.workspace = true
637 time = { workspace = true, features = ["local-offset"] }
638 unicode-width.workspace = true
639 unindent.workspace = true
640 uutests.workspace = true
641 uucore = { workspace = true, features = [
642 "mode",
643 "entries",
644 "pipes",
645 "process",
646 "signals",
647 "utmpx",
648 ] }
649 walkdir.workspace = true
650 hex-literal.workspace = true
651 rstest.workspace = true
652 rstest_reuse.workspace = true
653
654 [target.'cfg(all(any(target_os = "linux", all(target_os = "android", target_pointer_width = "64")), not(target_env = "musl")))'.dependencies]
655 # raw-backend's linux_execfn is not supported on linux < 6.4 if /proc is not mounted. So use-libc-auxv is needed
656 rustix = { workspace = true, features = ["param", "use-libc-auxv"] }
657
658 [target.'cfg(any(target_os = "linux", target_os = "android"))'.dependencies]
659 selinux = { workspace = true, optional = true }
660
661 # * uutils
662 chcon = { optional = true, version = "0.12.0", package = "uu_chcon", path = "src/uu/chcon" }
663 runcon = { optional = true, version = "0.12.0", package = "uu_runcon", path = "src/uu/runcon" }
664
665 # * pinned transitive dependencies
666 # Not needed for now. Keep as examples:
667 #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()`)
668
669 [target.'cfg(unix)'.dev-dependencies]
670 nix = { workspace = true, features = ["fs", "signal"] }
671 rlimit = { workspace = true }
672 rustix = { workspace = true, features = ["net", "process"] }
673
674 [build-dependencies]
675 phf_codegen.workspace = true
676
677 [lints]
678 workspace = true
679
680 [[bin]]
681 name = "coreutils"
682 path = "src/bin/coreutils.rs"
683
684 [[bin]]
685 name = "uudoc"
686 path = "src/bin/uudoc.rs"
687 required-features = ["uudoc"]
688
689 [profile.release]
690 lto = "fat"
691 panic = "abort"
692 codegen-units = 1
693
694 # A release-like profile that is as small as possible.
695 [profile.release-small]
696 inherits = "release"
697 opt-level = "z"
698 strip = true
699
700 # A release-like profile with debug info for profiling.
701 # See https://github.com/mstange/samply .
702 [profile.profiling]
703 inherits = "release"
704 panic = "unwind"
705 debug = true