diff --git a/Cargo.toml b/Cargo.toml index 85525c9b713..c12b1edb11f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -584,3 +584,13 @@ manual_let_else = "warn" all = { level = "deny", priority = -1 } cargo = { level = "warn", priority = -1 } pedantic = { level = "deny", priority = -1 } + +# This is the linting configuration for all crates. +# Eventually the clippy settings from the `[lints]` section should be moved here. +# In order to use these, all crates have `[lints] workspace = true` section. +[workspace.lints.rust] +# unused_qualifications = "warn" + +[workspace.lints.clippy] +all = { level = "deny", priority = -1 } +#cargo = { level = "warn", priority = -1 } diff --git a/src/uu/arch/Cargo.toml b/src/uu/arch/Cargo.toml index 736e12d011d..b7ca5c79c22 100644 --- a/src/uu/arch/Cargo.toml +++ b/src/uu/arch/Cargo.toml @@ -13,6 +13,9 @@ edition = "2024" readme.workspace = true +[lints] +workspace = true + [lib] path = "src/arch.rs" diff --git a/src/uu/base32/Cargo.toml b/src/uu/base32/Cargo.toml index 96c60ac9e64..a85fc0749e7 100644 --- a/src/uu/base32/Cargo.toml +++ b/src/uu/base32/Cargo.toml @@ -13,6 +13,9 @@ edition = "2024" readme.workspace = true +[lints] +workspace = true + [lib] path = "src/base32.rs" diff --git a/src/uu/base64/Cargo.toml b/src/uu/base64/Cargo.toml index 9ebc6b50862..1e1d81a044c 100644 --- a/src/uu/base64/Cargo.toml +++ b/src/uu/base64/Cargo.toml @@ -13,6 +13,9 @@ edition = "2024" readme.workspace = true +[lints] +workspace = true + [lib] path = "src/base64.rs" diff --git a/src/uu/basename/Cargo.toml b/src/uu/basename/Cargo.toml index d910d54d8f5..5d4c8228226 100644 --- a/src/uu/basename/Cargo.toml +++ b/src/uu/basename/Cargo.toml @@ -13,6 +13,9 @@ edition = "2024" readme.workspace = true +[lints] +workspace = true + [lib] path = "src/basename.rs" diff --git a/src/uu/basenc/Cargo.toml b/src/uu/basenc/Cargo.toml index 4fa6519baa4..121fd290d66 100644 --- a/src/uu/basenc/Cargo.toml +++ b/src/uu/basenc/Cargo.toml @@ -13,6 +13,9 @@ edition = "2024" readme.workspace = true +[lints] +workspace = true + [lib] path = "src/basenc.rs" diff --git a/src/uu/cat/Cargo.toml b/src/uu/cat/Cargo.toml index 04a70c20f7a..ca75a9c39ec 100644 --- a/src/uu/cat/Cargo.toml +++ b/src/uu/cat/Cargo.toml @@ -13,6 +13,9 @@ edition = "2024" readme.workspace = true +[lints] +workspace = true + [lib] path = "src/cat.rs" diff --git a/src/uu/chcon/Cargo.toml b/src/uu/chcon/Cargo.toml index 36eebf2dda4..832f1345046 100644 --- a/src/uu/chcon/Cargo.toml +++ b/src/uu/chcon/Cargo.toml @@ -12,6 +12,9 @@ edition = "2024" readme.workspace = true +[lints] +workspace = true + [lib] path = "src/chcon.rs" diff --git a/src/uu/chgrp/Cargo.toml b/src/uu/chgrp/Cargo.toml index 118b0826c49..ac59c42e310 100644 --- a/src/uu/chgrp/Cargo.toml +++ b/src/uu/chgrp/Cargo.toml @@ -13,6 +13,9 @@ edition = "2024" readme.workspace = true +[lints] +workspace = true + [lib] path = "src/chgrp.rs" diff --git a/src/uu/chmod/Cargo.toml b/src/uu/chmod/Cargo.toml index 77f5746ed44..eb4a2d864c8 100644 --- a/src/uu/chmod/Cargo.toml +++ b/src/uu/chmod/Cargo.toml @@ -13,6 +13,9 @@ edition = "2024" readme.workspace = true +[lints] +workspace = true + [lib] path = "src/chmod.rs" diff --git a/src/uu/chown/Cargo.toml b/src/uu/chown/Cargo.toml index 890a12b9fbe..1faf6d2b5dd 100644 --- a/src/uu/chown/Cargo.toml +++ b/src/uu/chown/Cargo.toml @@ -13,6 +13,9 @@ edition = "2024" readme.workspace = true +[lints] +workspace = true + [lib] path = "src/chown.rs" diff --git a/src/uu/chroot/Cargo.toml b/src/uu/chroot/Cargo.toml index 20fd98ee457..6d43041f2f7 100644 --- a/src/uu/chroot/Cargo.toml +++ b/src/uu/chroot/Cargo.toml @@ -13,6 +13,9 @@ edition = "2024" readme.workspace = true +[lints] +workspace = true + [lib] path = "src/chroot.rs" diff --git a/src/uu/cksum/Cargo.toml b/src/uu/cksum/Cargo.toml index 46f6099fd91..eade905a699 100644 --- a/src/uu/cksum/Cargo.toml +++ b/src/uu/cksum/Cargo.toml @@ -13,6 +13,9 @@ edition = "2024" readme.workspace = true +[lints] +workspace = true + [lib] path = "src/cksum.rs" diff --git a/src/uu/comm/Cargo.toml b/src/uu/comm/Cargo.toml index 572a95c9482..dd8a3a4d82e 100644 --- a/src/uu/comm/Cargo.toml +++ b/src/uu/comm/Cargo.toml @@ -13,6 +13,9 @@ edition = "2024" readme.workspace = true +[lints] +workspace = true + [lib] path = "src/comm.rs" diff --git a/src/uu/cp/Cargo.toml b/src/uu/cp/Cargo.toml index a6bab6ea827..f55a3a2b8e3 100644 --- a/src/uu/cp/Cargo.toml +++ b/src/uu/cp/Cargo.toml @@ -17,6 +17,9 @@ edition = "2024" readme.workspace = true +[lints] +workspace = true + [lib] path = "src/cp.rs" diff --git a/src/uu/csplit/Cargo.toml b/src/uu/csplit/Cargo.toml index db752c1d864..70bdc05bf59 100644 --- a/src/uu/csplit/Cargo.toml +++ b/src/uu/csplit/Cargo.toml @@ -13,6 +13,9 @@ edition = "2024" readme.workspace = true +[lints] +workspace = true + [lib] path = "src/csplit.rs" diff --git a/src/uu/cut/Cargo.toml b/src/uu/cut/Cargo.toml index 9305028e271..f0d3a78d399 100644 --- a/src/uu/cut/Cargo.toml +++ b/src/uu/cut/Cargo.toml @@ -13,6 +13,9 @@ edition = "2024" readme.workspace = true +[lints] +workspace = true + [lib] path = "src/cut.rs" diff --git a/src/uu/date/Cargo.toml b/src/uu/date/Cargo.toml index f9d96c605a6..dc1f717836b 100644 --- a/src/uu/date/Cargo.toml +++ b/src/uu/date/Cargo.toml @@ -14,6 +14,9 @@ edition = "2024" readme.workspace = true +[lints] +workspace = true + [lib] path = "src/date.rs" diff --git a/src/uu/dd/Cargo.toml b/src/uu/dd/Cargo.toml index 9a34631f2ef..422516b4137 100644 --- a/src/uu/dd/Cargo.toml +++ b/src/uu/dd/Cargo.toml @@ -13,6 +13,9 @@ edition = "2024" readme.workspace = true +[lints] +workspace = true + [lib] path = "src/dd.rs" diff --git a/src/uu/df/Cargo.toml b/src/uu/df/Cargo.toml index 61a7e837746..523723f7041 100644 --- a/src/uu/df/Cargo.toml +++ b/src/uu/df/Cargo.toml @@ -13,6 +13,9 @@ edition = "2024" readme.workspace = true +[lints] +workspace = true + [lib] path = "src/df.rs" diff --git a/src/uu/dir/Cargo.toml b/src/uu/dir/Cargo.toml index d7a463b7779..d4a06a83a3b 100644 --- a/src/uu/dir/Cargo.toml +++ b/src/uu/dir/Cargo.toml @@ -13,6 +13,9 @@ edition = "2024" readme.workspace = true +[lints] +workspace = true + [lib] path = "src/dir.rs" diff --git a/src/uu/dircolors/Cargo.toml b/src/uu/dircolors/Cargo.toml index ffa0ade1f9d..55ca7512bb9 100644 --- a/src/uu/dircolors/Cargo.toml +++ b/src/uu/dircolors/Cargo.toml @@ -13,6 +13,9 @@ edition = "2024" readme.workspace = true +[lints] +workspace = true + [lib] path = "src/dircolors.rs" diff --git a/src/uu/dirname/Cargo.toml b/src/uu/dirname/Cargo.toml index b64492c6e45..594a9acea53 100644 --- a/src/uu/dirname/Cargo.toml +++ b/src/uu/dirname/Cargo.toml @@ -13,6 +13,9 @@ edition = "2024" readme.workspace = true +[lints] +workspace = true + [lib] path = "src/dirname.rs" diff --git a/src/uu/du/Cargo.toml b/src/uu/du/Cargo.toml index 5bceda4b107..e8af6cc6866 100644 --- a/src/uu/du/Cargo.toml +++ b/src/uu/du/Cargo.toml @@ -13,6 +13,9 @@ edition = "2024" readme.workspace = true +[lints] +workspace = true + [lib] path = "src/du.rs" diff --git a/src/uu/echo/Cargo.toml b/src/uu/echo/Cargo.toml index e16d0c342a7..6c03e1477a6 100644 --- a/src/uu/echo/Cargo.toml +++ b/src/uu/echo/Cargo.toml @@ -13,6 +13,9 @@ edition = "2024" readme.workspace = true +[lints] +workspace = true + [lib] path = "src/echo.rs" diff --git a/src/uu/env/Cargo.toml b/src/uu/env/Cargo.toml index f1a50b8b99d..ae4fdc15da6 100644 --- a/src/uu/env/Cargo.toml +++ b/src/uu/env/Cargo.toml @@ -13,6 +13,9 @@ edition = "2024" readme.workspace = true +[lints] +workspace = true + [lib] path = "src/env.rs" diff --git a/src/uu/expand/Cargo.toml b/src/uu/expand/Cargo.toml index ad25d7dd610..c72fa6539c2 100644 --- a/src/uu/expand/Cargo.toml +++ b/src/uu/expand/Cargo.toml @@ -13,6 +13,9 @@ edition = "2024" readme.workspace = true +[lints] +workspace = true + [lib] path = "src/expand.rs" diff --git a/src/uu/expr/Cargo.toml b/src/uu/expr/Cargo.toml index 1e947d0afba..486a924548d 100644 --- a/src/uu/expr/Cargo.toml +++ b/src/uu/expr/Cargo.toml @@ -13,6 +13,9 @@ edition = "2024" readme.workspace = true +[lints] +workspace = true + [lib] path = "src/expr.rs" diff --git a/src/uu/factor/Cargo.toml b/src/uu/factor/Cargo.toml index 9488241e5c9..b3d5eb3a0d2 100644 --- a/src/uu/factor/Cargo.toml +++ b/src/uu/factor/Cargo.toml @@ -13,6 +13,9 @@ edition = "2024" readme.workspace = true +[lints] +workspace = true + [build-dependencies] num-traits = { workspace = true } # used in src/numerics.rs, which is included by build.rs diff --git a/src/uu/false/Cargo.toml b/src/uu/false/Cargo.toml index 692e26045dc..c597a57be59 100644 --- a/src/uu/false/Cargo.toml +++ b/src/uu/false/Cargo.toml @@ -13,6 +13,9 @@ edition = "2024" readme.workspace = true +[lints] +workspace = true + [lib] path = "src/false.rs" diff --git a/src/uu/fmt/Cargo.toml b/src/uu/fmt/Cargo.toml index aca576b3367..a95c3ab47e6 100644 --- a/src/uu/fmt/Cargo.toml +++ b/src/uu/fmt/Cargo.toml @@ -13,6 +13,9 @@ edition = "2024" readme.workspace = true +[lints] +workspace = true + [lib] path = "src/fmt.rs" diff --git a/src/uu/fold/Cargo.toml b/src/uu/fold/Cargo.toml index e140830ab8c..f8480d821c8 100644 --- a/src/uu/fold/Cargo.toml +++ b/src/uu/fold/Cargo.toml @@ -13,6 +13,9 @@ edition = "2024" readme.workspace = true +[lints] +workspace = true + [lib] path = "src/fold.rs" diff --git a/src/uu/groups/Cargo.toml b/src/uu/groups/Cargo.toml index 9530968053e..04a4e77fcec 100644 --- a/src/uu/groups/Cargo.toml +++ b/src/uu/groups/Cargo.toml @@ -13,6 +13,9 @@ edition = "2024" readme.workspace = true +[lints] +workspace = true + [lib] path = "src/groups.rs" diff --git a/src/uu/hashsum/Cargo.toml b/src/uu/hashsum/Cargo.toml index d3d8d27ea3f..04bf393db02 100644 --- a/src/uu/hashsum/Cargo.toml +++ b/src/uu/hashsum/Cargo.toml @@ -13,6 +13,9 @@ edition = "2024" readme.workspace = true +[lints] +workspace = true + [lib] path = "src/hashsum.rs" diff --git a/src/uu/head/Cargo.toml b/src/uu/head/Cargo.toml index d1fc4bc15d2..b23474831ee 100644 --- a/src/uu/head/Cargo.toml +++ b/src/uu/head/Cargo.toml @@ -13,6 +13,9 @@ edition = "2024" readme.workspace = true +[lints] +workspace = true + [lib] path = "src/head.rs" diff --git a/src/uu/hostid/Cargo.toml b/src/uu/hostid/Cargo.toml index a1f0ad80881..73828736e1d 100644 --- a/src/uu/hostid/Cargo.toml +++ b/src/uu/hostid/Cargo.toml @@ -13,6 +13,9 @@ edition = "2024" readme.workspace = true +[lints] +workspace = true + [lib] path = "src/hostid.rs" diff --git a/src/uu/hostname/Cargo.toml b/src/uu/hostname/Cargo.toml index fe9d1c65135..994a33b843b 100644 --- a/src/uu/hostname/Cargo.toml +++ b/src/uu/hostname/Cargo.toml @@ -13,6 +13,9 @@ edition = "2024" readme.workspace = true +[lints] +workspace = true + [lib] path = "src/hostname.rs" diff --git a/src/uu/id/Cargo.toml b/src/uu/id/Cargo.toml index 0163d10a200..2d8cbcd04ff 100644 --- a/src/uu/id/Cargo.toml +++ b/src/uu/id/Cargo.toml @@ -13,6 +13,9 @@ edition = "2024" readme.workspace = true +[lints] +workspace = true + [lib] path = "src/id.rs" diff --git a/src/uu/install/Cargo.toml b/src/uu/install/Cargo.toml index 47da45d188c..ac10818d952 100644 --- a/src/uu/install/Cargo.toml +++ b/src/uu/install/Cargo.toml @@ -13,6 +13,9 @@ edition = "2024" readme.workspace = true +[lints] +workspace = true + [lib] path = "src/install.rs" diff --git a/src/uu/join/Cargo.toml b/src/uu/join/Cargo.toml index d8c4935ffc8..cfdeeda47fe 100644 --- a/src/uu/join/Cargo.toml +++ b/src/uu/join/Cargo.toml @@ -13,6 +13,9 @@ edition = "2024" readme.workspace = true +[lints] +workspace = true + [lib] path = "src/join.rs" diff --git a/src/uu/kill/Cargo.toml b/src/uu/kill/Cargo.toml index 61629313519..75203a3597c 100644 --- a/src/uu/kill/Cargo.toml +++ b/src/uu/kill/Cargo.toml @@ -13,6 +13,9 @@ edition = "2024" readme.workspace = true +[lints] +workspace = true + [lib] path = "src/kill.rs" diff --git a/src/uu/link/Cargo.toml b/src/uu/link/Cargo.toml index 052bfdd8de3..52dd99c5bf2 100644 --- a/src/uu/link/Cargo.toml +++ b/src/uu/link/Cargo.toml @@ -13,6 +13,9 @@ edition = "2024" readme.workspace = true +[lints] +workspace = true + [lib] path = "src/link.rs" diff --git a/src/uu/ln/Cargo.toml b/src/uu/ln/Cargo.toml index 507a7f619e5..1906d58f24b 100644 --- a/src/uu/ln/Cargo.toml +++ b/src/uu/ln/Cargo.toml @@ -13,6 +13,9 @@ edition = "2024" readme.workspace = true +[lints] +workspace = true + [lib] path = "src/ln.rs" diff --git a/src/uu/logname/Cargo.toml b/src/uu/logname/Cargo.toml index 9b71c91e7b4..09463b803f6 100644 --- a/src/uu/logname/Cargo.toml +++ b/src/uu/logname/Cargo.toml @@ -13,6 +13,9 @@ edition = "2024" readme.workspace = true +[lints] +workspace = true + [lib] path = "src/logname.rs" diff --git a/src/uu/ls/Cargo.toml b/src/uu/ls/Cargo.toml index e8f9a14ece5..5edb0c71386 100644 --- a/src/uu/ls/Cargo.toml +++ b/src/uu/ls/Cargo.toml @@ -13,6 +13,9 @@ edition = "2024" readme.workspace = true +[lints] +workspace = true + [lib] path = "src/ls.rs" diff --git a/src/uu/mkdir/Cargo.toml b/src/uu/mkdir/Cargo.toml index dc8531d44bd..43ec6ba57f6 100644 --- a/src/uu/mkdir/Cargo.toml +++ b/src/uu/mkdir/Cargo.toml @@ -13,6 +13,9 @@ edition = "2024" readme.workspace = true +[lints] +workspace = true + [lib] path = "src/mkdir.rs" diff --git a/src/uu/mkfifo/Cargo.toml b/src/uu/mkfifo/Cargo.toml index de134e68e01..13b8b44f410 100644 --- a/src/uu/mkfifo/Cargo.toml +++ b/src/uu/mkfifo/Cargo.toml @@ -13,6 +13,9 @@ edition = "2024" readme.workspace = true +[lints] +workspace = true + [lib] path = "src/mkfifo.rs" diff --git a/src/uu/mknod/Cargo.toml b/src/uu/mknod/Cargo.toml index a0f4e386693..a20c82bdb9d 100644 --- a/src/uu/mknod/Cargo.toml +++ b/src/uu/mknod/Cargo.toml @@ -13,6 +13,9 @@ edition = "2024" readme.workspace = true +[lints] +workspace = true + [lib] name = "uu_mknod" path = "src/mknod.rs" diff --git a/src/uu/mktemp/Cargo.toml b/src/uu/mktemp/Cargo.toml index a46ededb861..9ea77c544ad 100644 --- a/src/uu/mktemp/Cargo.toml +++ b/src/uu/mktemp/Cargo.toml @@ -13,6 +13,9 @@ edition = "2024" readme.workspace = true +[lints] +workspace = true + [lib] path = "src/mktemp.rs" diff --git a/src/uu/more/Cargo.toml b/src/uu/more/Cargo.toml index 15967372d33..9d4a40157fd 100644 --- a/src/uu/more/Cargo.toml +++ b/src/uu/more/Cargo.toml @@ -13,6 +13,9 @@ edition = "2024" readme.workspace = true +[lints] +workspace = true + [lib] path = "src/more.rs" diff --git a/src/uu/mv/Cargo.toml b/src/uu/mv/Cargo.toml index f53b295e123..ae712d474b2 100644 --- a/src/uu/mv/Cargo.toml +++ b/src/uu/mv/Cargo.toml @@ -13,6 +13,9 @@ edition = "2024" readme.workspace = true +[lints] +workspace = true + [lib] path = "src/mv.rs" diff --git a/src/uu/nice/Cargo.toml b/src/uu/nice/Cargo.toml index 693684536fd..9aa4e60282c 100644 --- a/src/uu/nice/Cargo.toml +++ b/src/uu/nice/Cargo.toml @@ -13,6 +13,9 @@ edition = "2024" readme.workspace = true +[lints] +workspace = true + [lib] path = "src/nice.rs" diff --git a/src/uu/nl/Cargo.toml b/src/uu/nl/Cargo.toml index 3db7f5758fd..4c8efb7675b 100644 --- a/src/uu/nl/Cargo.toml +++ b/src/uu/nl/Cargo.toml @@ -13,6 +13,9 @@ edition = "2024" readme.workspace = true +[lints] +workspace = true + [lib] path = "src/nl.rs" diff --git a/src/uu/nohup/Cargo.toml b/src/uu/nohup/Cargo.toml index 72c0cd8f805..482b27a2240 100644 --- a/src/uu/nohup/Cargo.toml +++ b/src/uu/nohup/Cargo.toml @@ -13,6 +13,9 @@ edition = "2024" readme.workspace = true +[lints] +workspace = true + [lib] path = "src/nohup.rs" diff --git a/src/uu/nproc/Cargo.toml b/src/uu/nproc/Cargo.toml index 3f734b55982..2e4a58dc47c 100644 --- a/src/uu/nproc/Cargo.toml +++ b/src/uu/nproc/Cargo.toml @@ -13,6 +13,9 @@ edition = "2024" readme.workspace = true +[lints] +workspace = true + [lib] path = "src/nproc.rs" diff --git a/src/uu/numfmt/Cargo.toml b/src/uu/numfmt/Cargo.toml index 0b121f1f605..1e01fef137c 100644 --- a/src/uu/numfmt/Cargo.toml +++ b/src/uu/numfmt/Cargo.toml @@ -13,6 +13,9 @@ edition = "2024" readme.workspace = true +[lints] +workspace = true + [lib] path = "src/numfmt.rs" diff --git a/src/uu/od/Cargo.toml b/src/uu/od/Cargo.toml index dcae75171e3..cb0a5075d18 100644 --- a/src/uu/od/Cargo.toml +++ b/src/uu/od/Cargo.toml @@ -13,6 +13,9 @@ edition = "2024" readme.workspace = true +[lints] +workspace = true + [lib] path = "src/od.rs" diff --git a/src/uu/paste/Cargo.toml b/src/uu/paste/Cargo.toml index 98ae07728ad..346741eb7c2 100644 --- a/src/uu/paste/Cargo.toml +++ b/src/uu/paste/Cargo.toml @@ -13,6 +13,9 @@ edition = "2024" readme.workspace = true +[lints] +workspace = true + [lib] path = "src/paste.rs" diff --git a/src/uu/pathchk/Cargo.toml b/src/uu/pathchk/Cargo.toml index 4fe6946b89c..08fab78d45c 100644 --- a/src/uu/pathchk/Cargo.toml +++ b/src/uu/pathchk/Cargo.toml @@ -13,6 +13,9 @@ edition = "2024" readme.workspace = true +[lints] +workspace = true + [lib] path = "src/pathchk.rs" diff --git a/src/uu/pinky/Cargo.toml b/src/uu/pinky/Cargo.toml index 89c780bad26..004218266a6 100644 --- a/src/uu/pinky/Cargo.toml +++ b/src/uu/pinky/Cargo.toml @@ -13,6 +13,9 @@ edition = "2024" readme.workspace = true +[lints] +workspace = true + [lib] path = "src/pinky.rs" diff --git a/src/uu/pr/Cargo.toml b/src/uu/pr/Cargo.toml index 27863962aed..4110617e47e 100644 --- a/src/uu/pr/Cargo.toml +++ b/src/uu/pr/Cargo.toml @@ -13,6 +13,9 @@ edition = "2024" readme.workspace = true +[lints] +workspace = true + [lib] path = "src/pr.rs" diff --git a/src/uu/printenv/Cargo.toml b/src/uu/printenv/Cargo.toml index 00cd6ad9897..3d63e929166 100644 --- a/src/uu/printenv/Cargo.toml +++ b/src/uu/printenv/Cargo.toml @@ -13,6 +13,9 @@ edition = "2024" readme.workspace = true +[lints] +workspace = true + [lib] path = "src/printenv.rs" diff --git a/src/uu/printf/Cargo.toml b/src/uu/printf/Cargo.toml index 91727d5600c..2325545d3a8 100644 --- a/src/uu/printf/Cargo.toml +++ b/src/uu/printf/Cargo.toml @@ -13,6 +13,9 @@ edition = "2024" readme.workspace = true +[lints] +workspace = true + [lib] path = "src/printf.rs" diff --git a/src/uu/ptx/Cargo.toml b/src/uu/ptx/Cargo.toml index d703a4f4058..133d6b4362a 100644 --- a/src/uu/ptx/Cargo.toml +++ b/src/uu/ptx/Cargo.toml @@ -13,6 +13,9 @@ edition = "2024" readme.workspace = true +[lints] +workspace = true + [lib] path = "src/ptx.rs" diff --git a/src/uu/pwd/Cargo.toml b/src/uu/pwd/Cargo.toml index a927e19291f..62e19d77aef 100644 --- a/src/uu/pwd/Cargo.toml +++ b/src/uu/pwd/Cargo.toml @@ -13,6 +13,9 @@ edition = "2024" readme.workspace = true +[lints] +workspace = true + [lib] path = "src/pwd.rs" diff --git a/src/uu/readlink/Cargo.toml b/src/uu/readlink/Cargo.toml index 17ec518e586..2b65e460cae 100644 --- a/src/uu/readlink/Cargo.toml +++ b/src/uu/readlink/Cargo.toml @@ -13,6 +13,9 @@ edition = "2024" readme.workspace = true +[lints] +workspace = true + [lib] path = "src/readlink.rs" diff --git a/src/uu/realpath/Cargo.toml b/src/uu/realpath/Cargo.toml index dc2bcc273ed..6ba3d3ca93b 100644 --- a/src/uu/realpath/Cargo.toml +++ b/src/uu/realpath/Cargo.toml @@ -13,6 +13,9 @@ edition = "2024" readme.workspace = true +[lints] +workspace = true + [lib] path = "src/realpath.rs" diff --git a/src/uu/rm/Cargo.toml b/src/uu/rm/Cargo.toml index d529e085338..4a0705a483d 100644 --- a/src/uu/rm/Cargo.toml +++ b/src/uu/rm/Cargo.toml @@ -13,6 +13,9 @@ edition = "2024" readme.workspace = true +[lints] +workspace = true + [lib] path = "src/rm.rs" diff --git a/src/uu/rmdir/Cargo.toml b/src/uu/rmdir/Cargo.toml index 80e896641e9..c6a6d7501a8 100644 --- a/src/uu/rmdir/Cargo.toml +++ b/src/uu/rmdir/Cargo.toml @@ -13,6 +13,9 @@ edition = "2024" readme.workspace = true +[lints] +workspace = true + [lib] path = "src/rmdir.rs" diff --git a/src/uu/runcon/Cargo.toml b/src/uu/runcon/Cargo.toml index fd8259274d9..efd69ed3fca 100644 --- a/src/uu/runcon/Cargo.toml +++ b/src/uu/runcon/Cargo.toml @@ -12,6 +12,9 @@ edition = "2024" readme.workspace = true +[lints] +workspace = true + [lib] path = "src/runcon.rs" diff --git a/src/uu/seq/Cargo.toml b/src/uu/seq/Cargo.toml index f90c039cd29..cfec01c155e 100644 --- a/src/uu/seq/Cargo.toml +++ b/src/uu/seq/Cargo.toml @@ -34,6 +34,11 @@ uucore = { workspace = true, features = [ name = "seq" path = "src/main.rs" +# FIXME: this is the only crate that has a separate lints configuration, +# which for now means a full copy of all clippy and rust lints here. +[lints.clippy] +all = { level = "deny", priority = -1 } + # Allow "fuzzing" as a "cfg" condition name # https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html [lints.rust] diff --git a/src/uu/shred/Cargo.toml b/src/uu/shred/Cargo.toml index e8e901a29b7..7675bf2ac8d 100644 --- a/src/uu/shred/Cargo.toml +++ b/src/uu/shred/Cargo.toml @@ -13,6 +13,9 @@ edition = "2024" readme.workspace = true +[lints] +workspace = true + [lib] path = "src/shred.rs" diff --git a/src/uu/shuf/Cargo.toml b/src/uu/shuf/Cargo.toml index 73446aceae5..bc87befaf35 100644 --- a/src/uu/shuf/Cargo.toml +++ b/src/uu/shuf/Cargo.toml @@ -13,6 +13,9 @@ edition = "2024" readme.workspace = true +[lints] +workspace = true + [lib] path = "src/shuf.rs" diff --git a/src/uu/sleep/Cargo.toml b/src/uu/sleep/Cargo.toml index 89ddfe22913..c4c03b0cf01 100644 --- a/src/uu/sleep/Cargo.toml +++ b/src/uu/sleep/Cargo.toml @@ -13,6 +13,9 @@ edition = "2024" readme.workspace = true +[lints] +workspace = true + [lib] path = "src/sleep.rs" diff --git a/src/uu/sort/Cargo.toml b/src/uu/sort/Cargo.toml index 4e87db3dfc8..a23a61b86f0 100644 --- a/src/uu/sort/Cargo.toml +++ b/src/uu/sort/Cargo.toml @@ -13,6 +13,9 @@ edition = "2024" readme.workspace = true +[lints] +workspace = true + [lib] path = "src/sort.rs" diff --git a/src/uu/split/Cargo.toml b/src/uu/split/Cargo.toml index 1bcfcb0c198..572cb98b4b3 100644 --- a/src/uu/split/Cargo.toml +++ b/src/uu/split/Cargo.toml @@ -13,6 +13,9 @@ edition = "2024" readme.workspace = true +[lints] +workspace = true + [lib] path = "src/split.rs" diff --git a/src/uu/stat/Cargo.toml b/src/uu/stat/Cargo.toml index d47254b0c93..fdd648ffefb 100644 --- a/src/uu/stat/Cargo.toml +++ b/src/uu/stat/Cargo.toml @@ -13,6 +13,9 @@ edition = "2024" readme.workspace = true +[lints] +workspace = true + [lib] path = "src/stat.rs" diff --git a/src/uu/stdbuf/Cargo.toml b/src/uu/stdbuf/Cargo.toml index b0e229c76b6..367d4e10904 100644 --- a/src/uu/stdbuf/Cargo.toml +++ b/src/uu/stdbuf/Cargo.toml @@ -13,6 +13,9 @@ edition = "2024" readme.workspace = true +[lints] +workspace = true + [lib] path = "src/stdbuf.rs" diff --git a/src/uu/stty/Cargo.toml b/src/uu/stty/Cargo.toml index a995b60dcae..fb37303085a 100644 --- a/src/uu/stty/Cargo.toml +++ b/src/uu/stty/Cargo.toml @@ -13,6 +13,9 @@ edition = "2024" readme.workspace = true +[lints] +workspace = true + [lib] path = "src/stty.rs" diff --git a/src/uu/sum/Cargo.toml b/src/uu/sum/Cargo.toml index a6e23148d27..9dc272923b8 100644 --- a/src/uu/sum/Cargo.toml +++ b/src/uu/sum/Cargo.toml @@ -13,6 +13,9 @@ edition = "2024" readme.workspace = true +[lints] +workspace = true + [lib] path = "src/sum.rs" diff --git a/src/uu/sync/Cargo.toml b/src/uu/sync/Cargo.toml index b4cc7b4d1f7..467020ddf85 100644 --- a/src/uu/sync/Cargo.toml +++ b/src/uu/sync/Cargo.toml @@ -13,6 +13,9 @@ edition = "2024" readme.workspace = true +[lints] +workspace = true + [lib] path = "src/sync.rs" diff --git a/src/uu/tac/Cargo.toml b/src/uu/tac/Cargo.toml index e6ded1a4ac4..b4715cc55cf 100644 --- a/src/uu/tac/Cargo.toml +++ b/src/uu/tac/Cargo.toml @@ -15,6 +15,9 @@ edition = "2024" readme.workspace = true +[lints] +workspace = true + [lib] path = "src/tac.rs" diff --git a/src/uu/tail/Cargo.toml b/src/uu/tail/Cargo.toml index cf2b1e30871..a9fa69ed96b 100644 --- a/src/uu/tail/Cargo.toml +++ b/src/uu/tail/Cargo.toml @@ -14,6 +14,9 @@ edition = "2024" readme.workspace = true +[lints] +workspace = true + [lib] path = "src/tail.rs" diff --git a/src/uu/tee/Cargo.toml b/src/uu/tee/Cargo.toml index b6e52fb1a62..2072444c836 100644 --- a/src/uu/tee/Cargo.toml +++ b/src/uu/tee/Cargo.toml @@ -13,6 +13,9 @@ edition = "2024" readme.workspace = true +[lints] +workspace = true + [lib] path = "src/tee.rs" diff --git a/src/uu/test/Cargo.toml b/src/uu/test/Cargo.toml index 70de22acdd9..188f794e3a5 100644 --- a/src/uu/test/Cargo.toml +++ b/src/uu/test/Cargo.toml @@ -13,6 +13,9 @@ edition = "2024" readme.workspace = true +[lints] +workspace = true + [lib] path = "src/test.rs" diff --git a/src/uu/timeout/Cargo.toml b/src/uu/timeout/Cargo.toml index 9a9e2987d15..03801a8ca99 100644 --- a/src/uu/timeout/Cargo.toml +++ b/src/uu/timeout/Cargo.toml @@ -13,6 +13,9 @@ edition = "2024" readme.workspace = true +[lints] +workspace = true + [lib] path = "src/timeout.rs" diff --git a/src/uu/touch/Cargo.toml b/src/uu/touch/Cargo.toml index 15fdba163ef..a7b356cc847 100644 --- a/src/uu/touch/Cargo.toml +++ b/src/uu/touch/Cargo.toml @@ -14,6 +14,9 @@ edition = "2024" readme.workspace = true +[lints] +workspace = true + [lib] path = "src/touch.rs" diff --git a/src/uu/tr/Cargo.toml b/src/uu/tr/Cargo.toml index e07420ee477..cc41fe23771 100644 --- a/src/uu/tr/Cargo.toml +++ b/src/uu/tr/Cargo.toml @@ -13,6 +13,9 @@ edition = "2024" readme.workspace = true +[lints] +workspace = true + [lib] path = "src/tr.rs" diff --git a/src/uu/true/Cargo.toml b/src/uu/true/Cargo.toml index 74478652886..73febe4ac6d 100644 --- a/src/uu/true/Cargo.toml +++ b/src/uu/true/Cargo.toml @@ -13,6 +13,9 @@ edition = "2024" readme.workspace = true +[lints] +workspace = true + [lib] path = "src/true.rs" diff --git a/src/uu/truncate/Cargo.toml b/src/uu/truncate/Cargo.toml index 8cd4cd1d3d4..6fc412a793c 100644 --- a/src/uu/truncate/Cargo.toml +++ b/src/uu/truncate/Cargo.toml @@ -13,6 +13,9 @@ edition = "2024" readme.workspace = true +[lints] +workspace = true + [lib] path = "src/truncate.rs" diff --git a/src/uu/tsort/Cargo.toml b/src/uu/tsort/Cargo.toml index 51c972dcc2d..868253449da 100644 --- a/src/uu/tsort/Cargo.toml +++ b/src/uu/tsort/Cargo.toml @@ -13,6 +13,9 @@ edition = "2024" readme.workspace = true +[lints] +workspace = true + [lib] path = "src/tsort.rs" diff --git a/src/uu/tty/Cargo.toml b/src/uu/tty/Cargo.toml index 2739aac23bd..9d7d661f2d1 100644 --- a/src/uu/tty/Cargo.toml +++ b/src/uu/tty/Cargo.toml @@ -13,6 +13,9 @@ edition = "2024" readme.workspace = true +[lints] +workspace = true + [lib] path = "src/tty.rs" diff --git a/src/uu/uname/Cargo.toml b/src/uu/uname/Cargo.toml index 0aea36546c5..6d71ebcd08f 100644 --- a/src/uu/uname/Cargo.toml +++ b/src/uu/uname/Cargo.toml @@ -13,6 +13,9 @@ edition = "2024" readme.workspace = true +[lints] +workspace = true + [lib] path = "src/uname.rs" diff --git a/src/uu/unexpand/Cargo.toml b/src/uu/unexpand/Cargo.toml index 79248a70f55..d6edba406c2 100644 --- a/src/uu/unexpand/Cargo.toml +++ b/src/uu/unexpand/Cargo.toml @@ -13,6 +13,9 @@ edition = "2024" readme.workspace = true +[lints] +workspace = true + [lib] path = "src/unexpand.rs" diff --git a/src/uu/uniq/Cargo.toml b/src/uu/uniq/Cargo.toml index e47a2cfcbf9..1a87afb7d9d 100644 --- a/src/uu/uniq/Cargo.toml +++ b/src/uu/uniq/Cargo.toml @@ -13,6 +13,9 @@ edition = "2024" readme.workspace = true +[lints] +workspace = true + [lib] path = "src/uniq.rs" diff --git a/src/uu/unlink/Cargo.toml b/src/uu/unlink/Cargo.toml index 3bab76a1ebf..ec5c538bd6e 100644 --- a/src/uu/unlink/Cargo.toml +++ b/src/uu/unlink/Cargo.toml @@ -13,6 +13,9 @@ edition = "2024" readme.workspace = true +[lints] +workspace = true + [lib] path = "src/unlink.rs" diff --git a/src/uu/uptime/Cargo.toml b/src/uu/uptime/Cargo.toml index e5a031c1170..45821bcd15e 100644 --- a/src/uu/uptime/Cargo.toml +++ b/src/uu/uptime/Cargo.toml @@ -13,6 +13,9 @@ edition = "2024" readme.workspace = true +[lints] +workspace = true + [lib] path = "src/uptime.rs" diff --git a/src/uu/users/Cargo.toml b/src/uu/users/Cargo.toml index 6341b4a941a..df0d0884bb0 100644 --- a/src/uu/users/Cargo.toml +++ b/src/uu/users/Cargo.toml @@ -13,6 +13,9 @@ edition = "2024" readme.workspace = true +[lints] +workspace = true + [lib] path = "src/users.rs" diff --git a/src/uu/vdir/Cargo.toml b/src/uu/vdir/Cargo.toml index 26c8bac0001..d5360578599 100644 --- a/src/uu/vdir/Cargo.toml +++ b/src/uu/vdir/Cargo.toml @@ -13,6 +13,9 @@ edition = "2024" readme.workspace = true +[lints] +workspace = true + [lib] path = "src/vdir.rs" diff --git a/src/uu/wc/Cargo.toml b/src/uu/wc/Cargo.toml index 1e3fc70567a..877c78a9708 100644 --- a/src/uu/wc/Cargo.toml +++ b/src/uu/wc/Cargo.toml @@ -13,6 +13,9 @@ edition = "2024" readme.workspace = true +[lints] +workspace = true + [lib] path = "src/wc.rs" diff --git a/src/uu/who/Cargo.toml b/src/uu/who/Cargo.toml index 24bf451c1ff..ae143320daf 100644 --- a/src/uu/who/Cargo.toml +++ b/src/uu/who/Cargo.toml @@ -13,6 +13,9 @@ edition = "2024" readme.workspace = true +[lints] +workspace = true + [lib] path = "src/who.rs" diff --git a/src/uu/whoami/Cargo.toml b/src/uu/whoami/Cargo.toml index 22bd2a26c41..6ab5d48e5a7 100644 --- a/src/uu/whoami/Cargo.toml +++ b/src/uu/whoami/Cargo.toml @@ -13,6 +13,9 @@ edition = "2024" readme.workspace = true +[lints] +workspace = true + [lib] path = "src/whoami.rs" diff --git a/src/uu/yes/Cargo.toml b/src/uu/yes/Cargo.toml index e33766f3dc7..4e208c5c7c4 100644 --- a/src/uu/yes/Cargo.toml +++ b/src/uu/yes/Cargo.toml @@ -13,6 +13,9 @@ edition = "2024" readme.workspace = true +[lints] +workspace = true + [lib] path = "src/yes.rs"