Debian Codegraph @

Cargo.toml

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