diff --git a/.vscode/cspell.dictionaries/workspace.wordlist.txt b/.vscode/cspell.dictionaries/workspace.wordlist.txt index a9829a23c39..37cbeb828db 100644 --- a/.vscode/cspell.dictionaries/workspace.wordlist.txt +++ b/.vscode/cspell.dictionaries/workspace.wordlist.txt @@ -1,5 +1,6 @@ # * cargo cdylib +doctest rlib # * crates diff --git a/src/uu/arch/Cargo.toml b/src/uu/arch/Cargo.toml index b906a392972..bfd05f47ece 100644 --- a/src/uu/arch/Cargo.toml +++ b/src/uu/arch/Cargo.toml @@ -17,6 +17,8 @@ workspace = true [lib] path = "src/arch.rs" +test = false +doctest = false [dependencies] platform-info = { workspace = true } diff --git a/src/uu/b2sum/Cargo.toml b/src/uu/b2sum/Cargo.toml index 866d3558fce..98cb070f06f 100644 --- a/src/uu/b2sum/Cargo.toml +++ b/src/uu/b2sum/Cargo.toml @@ -17,6 +17,8 @@ workspace = true [lib] path = "src/b2sum.rs" +test = false +doctest = false [dependencies] clap = { workspace = true } diff --git a/src/uu/base32/Cargo.toml b/src/uu/base32/Cargo.toml index bec73709c1d..a079341adeb 100644 --- a/src/uu/base32/Cargo.toml +++ b/src/uu/base32/Cargo.toml @@ -17,6 +17,7 @@ workspace = true [lib] path = "src/base32.rs" +doctest = false [dependencies] clap = { workspace = true } diff --git a/src/uu/base64/Cargo.toml b/src/uu/base64/Cargo.toml index 38742d357e3..777b7c5a020 100644 --- a/src/uu/base64/Cargo.toml +++ b/src/uu/base64/Cargo.toml @@ -17,6 +17,8 @@ workspace = true [lib] path = "src/base64.rs" +test = false +doctest = false [dependencies] clap = { workspace = true } diff --git a/src/uu/basename/Cargo.toml b/src/uu/basename/Cargo.toml index 00230ea768f..7c55d2e51cb 100644 --- a/src/uu/basename/Cargo.toml +++ b/src/uu/basename/Cargo.toml @@ -17,6 +17,8 @@ workspace = true [lib] path = "src/basename.rs" +test = false +doctest = false [dependencies] clap = { workspace = true } diff --git a/src/uu/basenc/Cargo.toml b/src/uu/basenc/Cargo.toml index c36eb9c23e1..5888029eea3 100644 --- a/src/uu/basenc/Cargo.toml +++ b/src/uu/basenc/Cargo.toml @@ -17,6 +17,8 @@ workspace = true [lib] path = "src/basenc.rs" +test = false +doctest = false [dependencies] clap = { workspace = true } diff --git a/src/uu/cat/Cargo.toml b/src/uu/cat/Cargo.toml index e5c8ca35b86..c368c0ce40d 100644 --- a/src/uu/cat/Cargo.toml +++ b/src/uu/cat/Cargo.toml @@ -17,6 +17,7 @@ workspace = true [lib] path = "src/cat.rs" +doctest = false [dependencies] clap = { workspace = true } diff --git a/src/uu/chcon/Cargo.toml b/src/uu/chcon/Cargo.toml index 71e2c70e109..39e96d16424 100644 --- a/src/uu/chcon/Cargo.toml +++ b/src/uu/chcon/Cargo.toml @@ -17,6 +17,8 @@ workspace = true [lib] path = "src/chcon.rs" +test = false +doctest = false # TODO: block fetching crates without feat_selinux [target.'cfg(any(target_os = "linux", target_os = "android"))'.dependencies] diff --git a/src/uu/checksum_common/Cargo.toml b/src/uu/checksum_common/Cargo.toml index 428e7c4256b..ab6640dabcb 100644 --- a/src/uu/checksum_common/Cargo.toml +++ b/src/uu/checksum_common/Cargo.toml @@ -16,6 +16,7 @@ workspace = true [lib] path = "src/lib.rs" +test = false [dependencies] clap = { workspace = true } @@ -27,8 +28,6 @@ uucore = { workspace = true, features = [ ] } fluent = { workspace = true } -[dev-dependencies] - # [[bench]] # name = "b2sum_bench" # harness = false diff --git a/src/uu/chgrp/Cargo.toml b/src/uu/chgrp/Cargo.toml index f6989c88c5f..8f01aa0b0e7 100644 --- a/src/uu/chgrp/Cargo.toml +++ b/src/uu/chgrp/Cargo.toml @@ -17,6 +17,8 @@ workspace = true [lib] path = "src/chgrp.rs" +test = false +doctest = false [dependencies] clap = { workspace = true } diff --git a/src/uu/chmod/Cargo.toml b/src/uu/chmod/Cargo.toml index 7ac7d832313..7e0776d145d 100644 --- a/src/uu/chmod/Cargo.toml +++ b/src/uu/chmod/Cargo.toml @@ -17,6 +17,7 @@ workspace = true [lib] path = "src/chmod.rs" +doctest = false [dependencies] clap = { workspace = true } diff --git a/src/uu/chown/Cargo.toml b/src/uu/chown/Cargo.toml index 211475c3f64..6905ea66916 100644 --- a/src/uu/chown/Cargo.toml +++ b/src/uu/chown/Cargo.toml @@ -17,6 +17,7 @@ workspace = true [lib] path = "src/chown.rs" +doctest = false [dependencies] clap = { workspace = true } diff --git a/src/uu/chroot/Cargo.toml b/src/uu/chroot/Cargo.toml index 4b91c1a1f3b..bcb2ab53ec0 100644 --- a/src/uu/chroot/Cargo.toml +++ b/src/uu/chroot/Cargo.toml @@ -17,6 +17,8 @@ workspace = true [lib] path = "src/chroot.rs" +test = false +doctest = false [dependencies] clap = { workspace = true } diff --git a/src/uu/cksum/Cargo.toml b/src/uu/cksum/Cargo.toml index 37212eec890..5ada766d63c 100644 --- a/src/uu/cksum/Cargo.toml +++ b/src/uu/cksum/Cargo.toml @@ -17,6 +17,8 @@ workspace = true [lib] path = "src/cksum.rs" +test = false +doctest = false [dependencies] clap = { workspace = true } diff --git a/src/uu/comm/Cargo.toml b/src/uu/comm/Cargo.toml index 5f1436e4488..bf357a530e5 100644 --- a/src/uu/comm/Cargo.toml +++ b/src/uu/comm/Cargo.toml @@ -17,6 +17,8 @@ workspace = true [lib] path = "src/comm.rs" +test = false +doctest = false [dependencies] clap = { workspace = true } diff --git a/src/uu/cp/Cargo.toml b/src/uu/cp/Cargo.toml index bea4afc67c2..1fb66872282 100644 --- a/src/uu/cp/Cargo.toml +++ b/src/uu/cp/Cargo.toml @@ -17,6 +17,7 @@ workspace = true [lib] path = "src/cp.rs" +doctest = false [dependencies] clap = { workspace = true } diff --git a/src/uu/csplit/Cargo.toml b/src/uu/csplit/Cargo.toml index e117aa1582c..a9c6815d6d5 100644 --- a/src/uu/csplit/Cargo.toml +++ b/src/uu/csplit/Cargo.toml @@ -17,6 +17,7 @@ workspace = true [lib] path = "src/csplit.rs" +doctest = false [dependencies] clap = { workspace = true } diff --git a/src/uu/cut/Cargo.toml b/src/uu/cut/Cargo.toml index e45672e5424..ba52715dbde 100644 --- a/src/uu/cut/Cargo.toml +++ b/src/uu/cut/Cargo.toml @@ -17,6 +17,7 @@ workspace = true [lib] path = "src/cut.rs" +doctest = false [dependencies] clap = { workspace = true } diff --git a/src/uu/date/Cargo.toml b/src/uu/date/Cargo.toml index c82dbd4882b..41b0d499d7e 100644 --- a/src/uu/date/Cargo.toml +++ b/src/uu/date/Cargo.toml @@ -18,6 +18,7 @@ workspace = true [lib] path = "src/date.rs" +doctest = false [features] default = ["i18n-datetime"] diff --git a/src/uu/dd/Cargo.toml b/src/uu/dd/Cargo.toml index e92ac0f0f2c..405fd64da59 100644 --- a/src/uu/dd/Cargo.toml +++ b/src/uu/dd/Cargo.toml @@ -17,6 +17,7 @@ workspace = true [lib] path = "src/dd.rs" +doctest = false [dependencies] clap = { workspace = true } diff --git a/src/uu/df/Cargo.toml b/src/uu/df/Cargo.toml index dfb5aea8def..0938d06573c 100644 --- a/src/uu/df/Cargo.toml +++ b/src/uu/df/Cargo.toml @@ -17,6 +17,7 @@ workspace = true [lib] path = "src/df.rs" +doctest = false [dependencies] clap = { workspace = true } diff --git a/src/uu/dir/Cargo.toml b/src/uu/dir/Cargo.toml index 79cac6e9915..254c909d40f 100644 --- a/src/uu/dir/Cargo.toml +++ b/src/uu/dir/Cargo.toml @@ -17,6 +17,8 @@ workspace = true [lib] path = "src/dir.rs" +test = false +doctest = false [dependencies] clap = { workspace = true, features = ["env"] } diff --git a/src/uu/dircolors/Cargo.toml b/src/uu/dircolors/Cargo.toml index 393b3f42f03..409ab9944d5 100644 --- a/src/uu/dircolors/Cargo.toml +++ b/src/uu/dircolors/Cargo.toml @@ -17,6 +17,7 @@ workspace = true [lib] path = "src/dircolors.rs" +doctest = false [dependencies] clap = { workspace = true } diff --git a/src/uu/dirname/Cargo.toml b/src/uu/dirname/Cargo.toml index 76db2b955a2..5859afdc65d 100644 --- a/src/uu/dirname/Cargo.toml +++ b/src/uu/dirname/Cargo.toml @@ -17,6 +17,8 @@ workspace = true [lib] path = "src/dirname.rs" +test = false +doctest = false [dependencies] clap = { workspace = true } diff --git a/src/uu/du/Cargo.toml b/src/uu/du/Cargo.toml index 06f996edc33..a45f8bed5da 100644 --- a/src/uu/du/Cargo.toml +++ b/src/uu/du/Cargo.toml @@ -17,6 +17,7 @@ workspace = true [lib] path = "src/du.rs" +doctest = false [dependencies] # For the --exclude & --exclude-from options diff --git a/src/uu/echo/Cargo.toml b/src/uu/echo/Cargo.toml index 09babded44a..6ef826fa091 100644 --- a/src/uu/echo/Cargo.toml +++ b/src/uu/echo/Cargo.toml @@ -17,6 +17,8 @@ workspace = true [lib] path = "src/echo.rs" +test = false +doctest = false [dependencies] clap = { workspace = true } diff --git a/src/uu/env/Cargo.toml b/src/uu/env/Cargo.toml index b6b5a8cce8a..ed9d35b6960 100644 --- a/src/uu/env/Cargo.toml +++ b/src/uu/env/Cargo.toml @@ -17,6 +17,7 @@ workspace = true [lib] path = "src/env.rs" +doctest = false [dependencies] clap = { workspace = true } diff --git a/src/uu/expand/Cargo.toml b/src/uu/expand/Cargo.toml index 694c47e10b4..ddb200f76d1 100644 --- a/src/uu/expand/Cargo.toml +++ b/src/uu/expand/Cargo.toml @@ -17,6 +17,7 @@ workspace = true [lib] path = "src/expand.rs" +doctest = false [dependencies] clap = { workspace = true } diff --git a/src/uu/expr/Cargo.toml b/src/uu/expr/Cargo.toml index 037286d5283..a7a807a60d0 100644 --- a/src/uu/expr/Cargo.toml +++ b/src/uu/expr/Cargo.toml @@ -17,6 +17,7 @@ workspace = true [lib] path = "src/expr.rs" +doctest = false [dependencies] clap = { workspace = true } diff --git a/src/uu/factor/Cargo.toml b/src/uu/factor/Cargo.toml index 01dc46621d7..f94ef2545d7 100644 --- a/src/uu/factor/Cargo.toml +++ b/src/uu/factor/Cargo.toml @@ -33,6 +33,7 @@ uucore = { workspace = true, features = ["benchmark"] } [lib] path = "src/factor.rs" +doctest = false [[bench]] name = "factor_bench" diff --git a/src/uu/false/Cargo.toml b/src/uu/false/Cargo.toml index 13df15e0492..15a076514f0 100644 --- a/src/uu/false/Cargo.toml +++ b/src/uu/false/Cargo.toml @@ -18,6 +18,8 @@ workspace = true [lib] path = "src/false.rs" +test = false +doctest = false [dependencies] clap = { workspace = true } diff --git a/src/uu/fmt/Cargo.toml b/src/uu/fmt/Cargo.toml index e882966afca..88ba3a78f3e 100644 --- a/src/uu/fmt/Cargo.toml +++ b/src/uu/fmt/Cargo.toml @@ -17,6 +17,7 @@ workspace = true [lib] path = "src/fmt.rs" +doctest = false [dependencies] clap = { workspace = true } diff --git a/src/uu/fold/Cargo.toml b/src/uu/fold/Cargo.toml index e4e36b20593..894be69f3f9 100644 --- a/src/uu/fold/Cargo.toml +++ b/src/uu/fold/Cargo.toml @@ -17,6 +17,8 @@ workspace = true [lib] path = "src/fold.rs" +test = false +doctest = false [dependencies] clap = { workspace = true } diff --git a/src/uu/groups/Cargo.toml b/src/uu/groups/Cargo.toml index a94827160a4..c63b95cd3e0 100644 --- a/src/uu/groups/Cargo.toml +++ b/src/uu/groups/Cargo.toml @@ -17,6 +17,8 @@ workspace = true [lib] path = "src/groups.rs" +test = false +doctest = false [dependencies] clap = { workspace = true } diff --git a/src/uu/head/Cargo.toml b/src/uu/head/Cargo.toml index 353404a775a..d236bb83131 100644 --- a/src/uu/head/Cargo.toml +++ b/src/uu/head/Cargo.toml @@ -17,6 +17,7 @@ workspace = true [lib] path = "src/head.rs" +doctest = false [dependencies] clap = { workspace = true } diff --git a/src/uu/hostid/Cargo.toml b/src/uu/hostid/Cargo.toml index f4a6414f5b7..1b02601654e 100644 --- a/src/uu/hostid/Cargo.toml +++ b/src/uu/hostid/Cargo.toml @@ -17,6 +17,8 @@ workspace = true [lib] path = "src/hostid.rs" +test = false +doctest = false [dependencies] clap = { workspace = true } diff --git a/src/uu/hostname/Cargo.toml b/src/uu/hostname/Cargo.toml index 4e46e1af81f..60f9e9c7e18 100644 --- a/src/uu/hostname/Cargo.toml +++ b/src/uu/hostname/Cargo.toml @@ -17,6 +17,8 @@ workspace = true [lib] path = "src/hostname.rs" +test = false +doctest = false [dependencies] clap = { workspace = true } diff --git a/src/uu/id/Cargo.toml b/src/uu/id/Cargo.toml index ce31a65f5e9..551db19e8e6 100644 --- a/src/uu/id/Cargo.toml +++ b/src/uu/id/Cargo.toml @@ -17,6 +17,8 @@ workspace = true [lib] path = "src/id.rs" +test = false +doctest = false [dependencies] clap = { workspace = true } diff --git a/src/uu/join/Cargo.toml b/src/uu/join/Cargo.toml index 0f5cd8a2c9d..af1eff81937 100644 --- a/src/uu/join/Cargo.toml +++ b/src/uu/join/Cargo.toml @@ -17,6 +17,8 @@ workspace = true [lib] path = "src/join.rs" +test = false +doctest = false [dependencies] clap = { workspace = true } diff --git a/src/uu/kill/Cargo.toml b/src/uu/kill/Cargo.toml index 0b20e594f89..31fb999c9b9 100644 --- a/src/uu/kill/Cargo.toml +++ b/src/uu/kill/Cargo.toml @@ -17,6 +17,8 @@ workspace = true [lib] path = "src/kill.rs" +test = false +doctest = false [dependencies] clap = { workspace = true } diff --git a/src/uu/link/Cargo.toml b/src/uu/link/Cargo.toml index c1da6b5e085..f1c775a9f84 100644 --- a/src/uu/link/Cargo.toml +++ b/src/uu/link/Cargo.toml @@ -17,6 +17,8 @@ workspace = true [lib] path = "src/link.rs" +test = false +doctest = false [dependencies] clap = { workspace = true } diff --git a/src/uu/ln/Cargo.toml b/src/uu/ln/Cargo.toml index 6527ee89a2b..51922d9d630 100644 --- a/src/uu/ln/Cargo.toml +++ b/src/uu/ln/Cargo.toml @@ -17,6 +17,8 @@ workspace = true [lib] path = "src/ln.rs" +test = false +doctest = false [dependencies] clap = { workspace = true } diff --git a/src/uu/logname/Cargo.toml b/src/uu/logname/Cargo.toml index 8d1e1796271..14b6a0cc914 100644 --- a/src/uu/logname/Cargo.toml +++ b/src/uu/logname/Cargo.toml @@ -17,6 +17,8 @@ workspace = true [lib] path = "src/logname.rs" +test = false +doctest = false [dependencies] libc = { workspace = true } diff --git a/src/uu/ls/Cargo.toml b/src/uu/ls/Cargo.toml index b8688819ef8..08ecae68ffe 100644 --- a/src/uu/ls/Cargo.toml +++ b/src/uu/ls/Cargo.toml @@ -19,6 +19,7 @@ workspace = true [lib] path = "src/ls.rs" +doctest = false [dependencies] ansi-width = { workspace = true } diff --git a/src/uu/md5sum/Cargo.toml b/src/uu/md5sum/Cargo.toml index de269a0991f..1aa1e24bc1c 100644 --- a/src/uu/md5sum/Cargo.toml +++ b/src/uu/md5sum/Cargo.toml @@ -17,6 +17,8 @@ workspace = true [lib] path = "src/md5sum.rs" +test = false +doctest = false [dependencies] clap = { workspace = true } diff --git a/src/uu/mkdir/Cargo.toml b/src/uu/mkdir/Cargo.toml index 394bbbeac4d..3e5b8ea60e5 100644 --- a/src/uu/mkdir/Cargo.toml +++ b/src/uu/mkdir/Cargo.toml @@ -17,6 +17,8 @@ workspace = true [lib] path = "src/mkdir.rs" +test = false +doctest = false [dependencies] clap = { workspace = true } diff --git a/src/uu/mkfifo/Cargo.toml b/src/uu/mkfifo/Cargo.toml index 594b91ae764..d0fff7c86e9 100644 --- a/src/uu/mkfifo/Cargo.toml +++ b/src/uu/mkfifo/Cargo.toml @@ -17,6 +17,8 @@ workspace = true [lib] path = "src/mkfifo.rs" +test = false +doctest = false [dependencies] clap = { workspace = true } diff --git a/src/uu/mknod/Cargo.toml b/src/uu/mknod/Cargo.toml index 2bdcfe5ad91..876b1b4978e 100644 --- a/src/uu/mknod/Cargo.toml +++ b/src/uu/mknod/Cargo.toml @@ -18,6 +18,8 @@ workspace = true [lib] name = "uu_mknod" path = "src/mknod.rs" +test = false +doctest = false [dependencies] clap = { workspace = true } diff --git a/src/uu/mktemp/Cargo.toml b/src/uu/mktemp/Cargo.toml index 5c42d14b6b7..e974dfcc3ed 100644 --- a/src/uu/mktemp/Cargo.toml +++ b/src/uu/mktemp/Cargo.toml @@ -17,6 +17,7 @@ workspace = true [lib] path = "src/mktemp.rs" +doctest = false [dependencies] clap = { workspace = true } diff --git a/src/uu/more/Cargo.toml b/src/uu/more/Cargo.toml index 5057cee8a18..1cc9d011fb1 100644 --- a/src/uu/more/Cargo.toml +++ b/src/uu/more/Cargo.toml @@ -17,6 +17,7 @@ workspace = true [lib] path = "src/more.rs" +doctest = false [dependencies] clap = { workspace = true } @@ -24,8 +25,6 @@ crossterm = { workspace = true, features = ["events"] } uucore = { workspace = true } fluent = { workspace = true } -[target.'cfg(all(unix, not(target_os = "fuchsia")))'.dependencies] - [target.'cfg(windows)'.dependencies] crossterm = { workspace = true, features = ["windows"] } diff --git a/src/uu/mv/Cargo.toml b/src/uu/mv/Cargo.toml index 10680abd4e8..2327ee58935 100644 --- a/src/uu/mv/Cargo.toml +++ b/src/uu/mv/Cargo.toml @@ -17,6 +17,7 @@ workspace = true [lib] path = "src/mv.rs" +doctest = false [dependencies] clap = { workspace = true } diff --git a/src/uu/nice/Cargo.toml b/src/uu/nice/Cargo.toml index 45703c435d1..a4754d8a41d 100644 --- a/src/uu/nice/Cargo.toml +++ b/src/uu/nice/Cargo.toml @@ -17,6 +17,8 @@ workspace = true [lib] path = "src/nice.rs" +test = false +doctest = false [dependencies] clap = { workspace = true } diff --git a/src/uu/nl/Cargo.toml b/src/uu/nl/Cargo.toml index 5818dfa9193..71c22e96e1f 100644 --- a/src/uu/nl/Cargo.toml +++ b/src/uu/nl/Cargo.toml @@ -17,6 +17,7 @@ workspace = true [lib] path = "src/nl.rs" +doctest = false [dependencies] clap = { workspace = true } diff --git a/src/uu/nohup/Cargo.toml b/src/uu/nohup/Cargo.toml index 4b9d0213b9b..a600d11e48f 100644 --- a/src/uu/nohup/Cargo.toml +++ b/src/uu/nohup/Cargo.toml @@ -17,6 +17,8 @@ workspace = true [lib] path = "src/nohup.rs" +test = false +doctest = false [dependencies] clap = { workspace = true } diff --git a/src/uu/nproc/Cargo.toml b/src/uu/nproc/Cargo.toml index 496a8409f60..fdba21e02a0 100644 --- a/src/uu/nproc/Cargo.toml +++ b/src/uu/nproc/Cargo.toml @@ -17,6 +17,8 @@ workspace = true [lib] path = "src/nproc.rs" +test = false +doctest = false [dependencies] libc = { workspace = true } diff --git a/src/uu/paste/Cargo.toml b/src/uu/paste/Cargo.toml index eee948150af..0874fa47286 100644 --- a/src/uu/paste/Cargo.toml +++ b/src/uu/paste/Cargo.toml @@ -17,6 +17,8 @@ workspace = true [lib] path = "src/paste.rs" +test = false +doctest = false [dependencies] clap = { workspace = true } diff --git a/src/uu/pathchk/Cargo.toml b/src/uu/pathchk/Cargo.toml index dcf6ced6000..d1cad8900a4 100644 --- a/src/uu/pathchk/Cargo.toml +++ b/src/uu/pathchk/Cargo.toml @@ -17,6 +17,8 @@ workspace = true [lib] path = "src/pathchk.rs" +test = false +doctest = false [dependencies] clap = { workspace = true } diff --git a/src/uu/pinky/Cargo.toml b/src/uu/pinky/Cargo.toml index 5fc84f3bd94..8d3344d31e9 100644 --- a/src/uu/pinky/Cargo.toml +++ b/src/uu/pinky/Cargo.toml @@ -22,6 +22,7 @@ feat_systemd_logind = ["uucore/feat_systemd_logind"] [lib] path = "src/pinky.rs" +doctest = false [dependencies] clap = { workspace = true } diff --git a/src/uu/pr/Cargo.toml b/src/uu/pr/Cargo.toml index e3953c62bf6..79f0b2dce86 100644 --- a/src/uu/pr/Cargo.toml +++ b/src/uu/pr/Cargo.toml @@ -17,6 +17,8 @@ workspace = true [lib] path = "src/pr.rs" +test = false +doctest = false [dependencies] clap = { workspace = true } diff --git a/src/uu/printenv/Cargo.toml b/src/uu/printenv/Cargo.toml index b7397563679..2562154d0f5 100644 --- a/src/uu/printenv/Cargo.toml +++ b/src/uu/printenv/Cargo.toml @@ -17,6 +17,8 @@ workspace = true [lib] path = "src/printenv.rs" +test = false +doctest = false [dependencies] clap = { workspace = true } diff --git a/src/uu/printf/Cargo.toml b/src/uu/printf/Cargo.toml index dfeacb30eda..e9439c54bc6 100644 --- a/src/uu/printf/Cargo.toml +++ b/src/uu/printf/Cargo.toml @@ -17,6 +17,8 @@ workspace = true [lib] path = "src/printf.rs" +test = false +doctest = false [dependencies] clap = { workspace = true } diff --git a/src/uu/ptx/Cargo.toml b/src/uu/ptx/Cargo.toml index 0e2d7ac8e3c..fa7991a74f1 100644 --- a/src/uu/ptx/Cargo.toml +++ b/src/uu/ptx/Cargo.toml @@ -17,6 +17,8 @@ workspace = true [lib] path = "src/ptx.rs" +test = false +doctest = false [dependencies] clap = { workspace = true } diff --git a/src/uu/pwd/Cargo.toml b/src/uu/pwd/Cargo.toml index 5d34c0c2315..d6c19978076 100644 --- a/src/uu/pwd/Cargo.toml +++ b/src/uu/pwd/Cargo.toml @@ -17,6 +17,8 @@ workspace = true [lib] path = "src/pwd.rs" +test = false +doctest = false [dependencies] clap = { workspace = true } diff --git a/src/uu/readlink/Cargo.toml b/src/uu/readlink/Cargo.toml index a4b92b6f02d..33fc316a613 100644 --- a/src/uu/readlink/Cargo.toml +++ b/src/uu/readlink/Cargo.toml @@ -17,6 +17,8 @@ workspace = true [lib] path = "src/readlink.rs" +test = false +doctest = false [dependencies] clap = { workspace = true } diff --git a/src/uu/realpath/Cargo.toml b/src/uu/realpath/Cargo.toml index af675def19f..e7d5629e3fc 100644 --- a/src/uu/realpath/Cargo.toml +++ b/src/uu/realpath/Cargo.toml @@ -17,6 +17,8 @@ workspace = true [lib] path = "src/realpath.rs" +test = false +doctest = false [dependencies] clap = { workspace = true } diff --git a/src/uu/rm/Cargo.toml b/src/uu/rm/Cargo.toml index e04b0e52d11..744bd3ce272 100644 --- a/src/uu/rm/Cargo.toml +++ b/src/uu/rm/Cargo.toml @@ -17,6 +17,7 @@ workspace = true [lib] path = "src/rm.rs" +doctest = false [dependencies] thiserror = { workspace = true } diff --git a/src/uu/rmdir/Cargo.toml b/src/uu/rmdir/Cargo.toml index 2841e341225..c33fa2ef0f5 100644 --- a/src/uu/rmdir/Cargo.toml +++ b/src/uu/rmdir/Cargo.toml @@ -17,6 +17,8 @@ workspace = true [lib] path = "src/rmdir.rs" +test = false +doctest = false [dependencies] clap = { workspace = true } diff --git a/src/uu/runcon/Cargo.toml b/src/uu/runcon/Cargo.toml index 6ed1c2e3d82..36087b23f65 100644 --- a/src/uu/runcon/Cargo.toml +++ b/src/uu/runcon/Cargo.toml @@ -17,6 +17,8 @@ workspace = true [lib] path = "src/runcon.rs" +test = false +doctest = false # TODO: block fetching crates without feat_selinux [target.'cfg(any(target_os = "linux", target_os = "android"))'.dependencies] diff --git a/src/uu/seq/Cargo.toml b/src/uu/seq/Cargo.toml index 87b6a52e14f..5c93852b626 100644 --- a/src/uu/seq/Cargo.toml +++ b/src/uu/seq/Cargo.toml @@ -18,6 +18,7 @@ workspace = true [lib] path = "src/seq.rs" +doctest = false [dependencies] bigdecimal = { workspace = true } diff --git a/src/uu/sha1sum/Cargo.toml b/src/uu/sha1sum/Cargo.toml index 0704d6ba6ba..db74818b51b 100644 --- a/src/uu/sha1sum/Cargo.toml +++ b/src/uu/sha1sum/Cargo.toml @@ -17,6 +17,8 @@ workspace = true [lib] path = "src/sha1sum.rs" +test = false +doctest = false [dependencies] clap = { workspace = true } diff --git a/src/uu/sha224sum/Cargo.toml b/src/uu/sha224sum/Cargo.toml index 6120aad802e..2d31c83cfef 100644 --- a/src/uu/sha224sum/Cargo.toml +++ b/src/uu/sha224sum/Cargo.toml @@ -17,6 +17,8 @@ workspace = true [lib] path = "src/sha224sum.rs" +test = false +doctest = false [dependencies] clap = { workspace = true } diff --git a/src/uu/sha256sum/Cargo.toml b/src/uu/sha256sum/Cargo.toml index 6a93bf91639..4edd734e184 100644 --- a/src/uu/sha256sum/Cargo.toml +++ b/src/uu/sha256sum/Cargo.toml @@ -17,6 +17,8 @@ workspace = true [lib] path = "src/sha256sum.rs" +test = false +doctest = false [dependencies] clap = { workspace = true } diff --git a/src/uu/sha384sum/Cargo.toml b/src/uu/sha384sum/Cargo.toml index 00e9f5472bf..b91530efd57 100644 --- a/src/uu/sha384sum/Cargo.toml +++ b/src/uu/sha384sum/Cargo.toml @@ -17,6 +17,8 @@ workspace = true [lib] path = "src/sha384sum.rs" +test = false +doctest = false [dependencies] clap = { workspace = true } diff --git a/src/uu/sha512sum/Cargo.toml b/src/uu/sha512sum/Cargo.toml index cf204df6902..9794dd534fa 100644 --- a/src/uu/sha512sum/Cargo.toml +++ b/src/uu/sha512sum/Cargo.toml @@ -17,6 +17,8 @@ workspace = true [lib] path = "src/sha512sum.rs" +test = false +doctest = false [dependencies] clap = { workspace = true } diff --git a/src/uu/shred/Cargo.toml b/src/uu/shred/Cargo.toml index 6ebecb01ab8..7ae709bf85f 100644 --- a/src/uu/shred/Cargo.toml +++ b/src/uu/shred/Cargo.toml @@ -17,6 +17,7 @@ workspace = true [lib] path = "src/shred.rs" +doctest = false [dependencies] clap = { workspace = true } diff --git a/src/uu/shuf/Cargo.toml b/src/uu/shuf/Cargo.toml index d59f022e1af..caea7386499 100644 --- a/src/uu/shuf/Cargo.toml +++ b/src/uu/shuf/Cargo.toml @@ -17,6 +17,7 @@ workspace = true [lib] path = "src/shuf.rs" +doctest = false [dependencies] clap = { workspace = true } diff --git a/src/uu/sleep/Cargo.toml b/src/uu/sleep/Cargo.toml index ccd878bd407..ad0590dc842 100644 --- a/src/uu/sleep/Cargo.toml +++ b/src/uu/sleep/Cargo.toml @@ -17,6 +17,8 @@ workspace = true [lib] path = "src/sleep.rs" +test = false +doctest = false [dependencies] clap = { workspace = true } diff --git a/src/uu/sort/Cargo.toml b/src/uu/sort/Cargo.toml index bf7c514bf3c..8c61f02983b 100644 --- a/src/uu/sort/Cargo.toml +++ b/src/uu/sort/Cargo.toml @@ -19,6 +19,7 @@ workspace = true [lib] path = "src/sort.rs" +doctest = false [features] default = ["i18n-collator"] diff --git a/src/uu/split/Cargo.toml b/src/uu/split/Cargo.toml index d9878b47b64..58e84857a04 100644 --- a/src/uu/split/Cargo.toml +++ b/src/uu/split/Cargo.toml @@ -17,6 +17,7 @@ workspace = true [lib] path = "src/split.rs" +doctest = false [dependencies] clap = { workspace = true } diff --git a/src/uu/stat/Cargo.toml b/src/uu/stat/Cargo.toml index d01a713ec3c..0cd59e4c2d0 100644 --- a/src/uu/stat/Cargo.toml +++ b/src/uu/stat/Cargo.toml @@ -17,6 +17,7 @@ workspace = true [lib] path = "src/stat.rs" +doctest = false [dependencies] clap = { workspace = true } diff --git a/src/uu/stdbuf/Cargo.toml b/src/uu/stdbuf/Cargo.toml index 7510be1a4f4..acc9976c9f5 100644 --- a/src/uu/stdbuf/Cargo.toml +++ b/src/uu/stdbuf/Cargo.toml @@ -18,6 +18,8 @@ workspace = true [lib] path = "src/stdbuf.rs" +test = false +doctest = false [dependencies] clap = { workspace = true } diff --git a/src/uu/stdbuf/src/libstdbuf/Cargo.toml b/src/uu/stdbuf/src/libstdbuf/Cargo.toml index 2e76b2ee6dc..5d533dce293 100644 --- a/src/uu/stdbuf/src/libstdbuf/Cargo.toml +++ b/src/uu/stdbuf/src/libstdbuf/Cargo.toml @@ -18,6 +18,7 @@ workspace = true name = "stdbuf" path = "src/libstdbuf.rs" crate-type = ["cdylib"] +test = false [dependencies] ctor = { workspace = true } diff --git a/src/uu/stty/Cargo.toml b/src/uu/stty/Cargo.toml index f6c472a891d..764f28f3534 100644 --- a/src/uu/stty/Cargo.toml +++ b/src/uu/stty/Cargo.toml @@ -17,6 +17,7 @@ workspace = true [lib] path = "src/stty.rs" +doctest = false [dependencies] clap = { workspace = true } diff --git a/src/uu/sum/Cargo.toml b/src/uu/sum/Cargo.toml index b3b923ec2ea..77bbf1f0b27 100644 --- a/src/uu/sum/Cargo.toml +++ b/src/uu/sum/Cargo.toml @@ -17,6 +17,8 @@ workspace = true [lib] path = "src/sum.rs" +test = false +doctest = false [dependencies] clap = { workspace = true } diff --git a/src/uu/sync/Cargo.toml b/src/uu/sync/Cargo.toml index 21df8266dce..43bbaaf64a8 100644 --- a/src/uu/sync/Cargo.toml +++ b/src/uu/sync/Cargo.toml @@ -17,6 +17,8 @@ workspace = true [lib] path = "src/sync.rs" +test = false +doctest = false [dependencies] clap = { workspace = true } diff --git a/src/uu/tac/Cargo.toml b/src/uu/tac/Cargo.toml index e65ff6c889c..3618d34d3a2 100644 --- a/src/uu/tac/Cargo.toml +++ b/src/uu/tac/Cargo.toml @@ -19,6 +19,7 @@ workspace = true [lib] path = "src/tac.rs" +doctest = false [dependencies] memchr = { workspace = true } diff --git a/src/uu/tail/Cargo.toml b/src/uu/tail/Cargo.toml index 5dd0e918c24..b7d6167646c 100644 --- a/src/uu/tail/Cargo.toml +++ b/src/uu/tail/Cargo.toml @@ -18,6 +18,7 @@ workspace = true [lib] path = "src/tail.rs" +doctest = false [dependencies] clap = { workspace = true } diff --git a/src/uu/tee/Cargo.toml b/src/uu/tee/Cargo.toml index 9be41804aa8..efb83ed83ee 100644 --- a/src/uu/tee/Cargo.toml +++ b/src/uu/tee/Cargo.toml @@ -17,6 +17,8 @@ workspace = true [lib] path = "src/tee.rs" +test = false +doctest = false [dependencies] clap = { workspace = true } diff --git a/src/uu/test/Cargo.toml b/src/uu/test/Cargo.toml index 002e42fd098..e86d8d0f53c 100644 --- a/src/uu/test/Cargo.toml +++ b/src/uu/test/Cargo.toml @@ -17,6 +17,7 @@ workspace = true [lib] path = "src/test.rs" +doctest = false [dependencies] clap = { workspace = true } diff --git a/src/uu/timeout/Cargo.toml b/src/uu/timeout/Cargo.toml index ecc10470195..5b442f26e87 100644 --- a/src/uu/timeout/Cargo.toml +++ b/src/uu/timeout/Cargo.toml @@ -17,6 +17,8 @@ workspace = true [lib] path = "src/timeout.rs" +test = false +doctest = false [dependencies] clap = { workspace = true } diff --git a/src/uu/touch/Cargo.toml b/src/uu/touch/Cargo.toml index 4bfff3d5df1..5409c333f0d 100644 --- a/src/uu/touch/Cargo.toml +++ b/src/uu/touch/Cargo.toml @@ -18,6 +18,7 @@ workspace = true [lib] path = "src/touch.rs" +doctest = false [dependencies] filetime = { workspace = true } diff --git a/src/uu/tr/Cargo.toml b/src/uu/tr/Cargo.toml index e470db1ce5b..1fc8cbbce91 100644 --- a/src/uu/tr/Cargo.toml +++ b/src/uu/tr/Cargo.toml @@ -17,6 +17,8 @@ workspace = true [lib] path = "src/tr.rs" +test = false +doctest = false [dependencies] nom = { workspace = true } diff --git a/src/uu/true/Cargo.toml b/src/uu/true/Cargo.toml index aaf37e8b905..68b96f9d802 100644 --- a/src/uu/true/Cargo.toml +++ b/src/uu/true/Cargo.toml @@ -17,6 +17,8 @@ workspace = true [lib] path = "src/true.rs" +test = false +doctest = false [dependencies] clap = { workspace = true } diff --git a/src/uu/truncate/Cargo.toml b/src/uu/truncate/Cargo.toml index c2bd3714953..b443ac15580 100644 --- a/src/uu/truncate/Cargo.toml +++ b/src/uu/truncate/Cargo.toml @@ -17,6 +17,7 @@ workspace = true [lib] path = "src/truncate.rs" +doctest = false [dependencies] clap = { workspace = true } diff --git a/src/uu/tsort/Cargo.toml b/src/uu/tsort/Cargo.toml index 227cab634ea..c3c833306ff 100644 --- a/src/uu/tsort/Cargo.toml +++ b/src/uu/tsort/Cargo.toml @@ -18,6 +18,8 @@ workspace = true [lib] path = "src/tsort.rs" +test = false +doctest = false [dependencies] clap = { workspace = true } diff --git a/src/uu/tty/Cargo.toml b/src/uu/tty/Cargo.toml index 6fe03e42525..340a73876fa 100644 --- a/src/uu/tty/Cargo.toml +++ b/src/uu/tty/Cargo.toml @@ -17,6 +17,8 @@ workspace = true [lib] path = "src/tty.rs" +test = false +doctest = false [dependencies] clap = { workspace = true } diff --git a/src/uu/uname/Cargo.toml b/src/uu/uname/Cargo.toml index fe704f96e94..a28a567d262 100644 --- a/src/uu/uname/Cargo.toml +++ b/src/uu/uname/Cargo.toml @@ -17,6 +17,8 @@ workspace = true [lib] path = "src/uname.rs" +test = false +doctest = false [dependencies] platform-info = { workspace = true } diff --git a/src/uu/unexpand/Cargo.toml b/src/uu/unexpand/Cargo.toml index 81e44d92074..1130f307e44 100644 --- a/src/uu/unexpand/Cargo.toml +++ b/src/uu/unexpand/Cargo.toml @@ -17,6 +17,7 @@ workspace = true [lib] path = "src/unexpand.rs" +doctest = false [dependencies] thiserror = { workspace = true } diff --git a/src/uu/uniq/Cargo.toml b/src/uu/uniq/Cargo.toml index a484c2a14aa..30098212f2e 100644 --- a/src/uu/uniq/Cargo.toml +++ b/src/uu/uniq/Cargo.toml @@ -17,6 +17,8 @@ workspace = true [lib] path = "src/uniq.rs" +test = false +doctest = false [dependencies] clap = { workspace = true } diff --git a/src/uu/unlink/Cargo.toml b/src/uu/unlink/Cargo.toml index 8f9adc52d95..7a179ec24bb 100644 --- a/src/uu/unlink/Cargo.toml +++ b/src/uu/unlink/Cargo.toml @@ -17,6 +17,8 @@ workspace = true [lib] path = "src/unlink.rs" +test = false +doctest = false [dependencies] clap = { workspace = true } diff --git a/src/uu/uptime/Cargo.toml b/src/uu/uptime/Cargo.toml index 3d078fabba4..73e3718dea0 100644 --- a/src/uu/uptime/Cargo.toml +++ b/src/uu/uptime/Cargo.toml @@ -22,6 +22,8 @@ feat_systemd_logind = ["uucore/feat_systemd_logind"] [lib] path = "src/uptime.rs" +test = false +doctest = false [dependencies] clap = { workspace = true } @@ -30,8 +32,6 @@ uucore = { workspace = true, features = ["libc", "utmpx", "uptime"] } fluent = { workspace = true } jiff = { workspace = true } -[target.'cfg(target_os = "openbsd")'.dependencies] - [[bin]] name = "uptime" path = "src/main.rs" diff --git a/src/uu/users/Cargo.toml b/src/uu/users/Cargo.toml index 3a68307e307..7cf10634a51 100644 --- a/src/uu/users/Cargo.toml +++ b/src/uu/users/Cargo.toml @@ -22,6 +22,8 @@ feat_systemd_logind = ["uucore/feat_systemd_logind"] [lib] path = "src/users.rs" +test = false +doctest = false [dependencies] clap = { workspace = true } diff --git a/src/uu/vdir/Cargo.toml b/src/uu/vdir/Cargo.toml index a9b6c51916b..defce543e11 100644 --- a/src/uu/vdir/Cargo.toml +++ b/src/uu/vdir/Cargo.toml @@ -17,6 +17,8 @@ workspace = true [lib] path = "src/vdir.rs" +test = false +doctest = false [dependencies] clap = { workspace = true, features = ["env"] } diff --git a/src/uu/wc/Cargo.toml b/src/uu/wc/Cargo.toml index a285d58c8a9..f43ceef0a0c 100644 --- a/src/uu/wc/Cargo.toml +++ b/src/uu/wc/Cargo.toml @@ -17,6 +17,8 @@ workspace = true [lib] path = "src/wc.rs" +test = false +doctest = false [dependencies] bytecount = { workspace = true, features = ["runtime-dispatch-simd"] } diff --git a/src/uu/who/Cargo.toml b/src/uu/who/Cargo.toml index c4cf5145b38..71420424d01 100644 --- a/src/uu/who/Cargo.toml +++ b/src/uu/who/Cargo.toml @@ -23,6 +23,8 @@ feat_systemd_logind = ["uucore/feat_systemd_logind"] [lib] path = "src/who.rs" +test = false +doctest = false [dependencies] clap = { workspace = true } diff --git a/src/uu/whoami/Cargo.toml b/src/uu/whoami/Cargo.toml index fe88d640770..b73ffef3d0f 100644 --- a/src/uu/whoami/Cargo.toml +++ b/src/uu/whoami/Cargo.toml @@ -17,6 +17,8 @@ workspace = true [lib] path = "src/whoami.rs" +test = false +doctest = false [dependencies] clap = { workspace = true } diff --git a/src/uu/yes/Cargo.toml b/src/uu/yes/Cargo.toml index 1c2c53dde43..eaa36c1ae35 100644 --- a/src/uu/yes/Cargo.toml +++ b/src/uu/yes/Cargo.toml @@ -17,6 +17,7 @@ workspace = true [lib] path = "src/yes.rs" +doctest = false [dependencies] clap = { workspace = true } diff --git a/src/uucore_procs/Cargo.toml b/src/uucore_procs/Cargo.toml index a8c76441c7e..c5e45c4c49f 100644 --- a/src/uucore_procs/Cargo.toml +++ b/src/uucore_procs/Cargo.toml @@ -13,6 +13,8 @@ version.workspace = true [lib] proc-macro = true +test = false +doctest = false [dependencies] proc-macro2 = "1.0.81"