diff --git a/Cargo.toml b/Cargo.toml index 53f6e7a90e5..4e26ec5d924 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -747,6 +747,9 @@ rustix.workspace = true [build-dependencies] phf_codegen.workspace = true +[lints] +workspace = true + [[bin]] name = "coreutils" path = "src/bin/coreutils.rs" @@ -773,6 +776,3 @@ strip = true inherits = "release" panic = "unwind" debug = true - -[lints] -workspace = true diff --git a/src/uu/arch/Cargo.toml b/src/uu/arch/Cargo.toml index d54fa589890..71b9caf922f 100644 --- a/src/uu/arch/Cargo.toml +++ b/src/uu/arch/Cargo.toml @@ -11,9 +11,6 @@ edition.workspace = true rust-version.workspace = true readme.workspace = true -[lints] -workspace = true - [lib] path = "src/arch.rs" test = false @@ -25,6 +22,9 @@ clap = { workspace = true } uucore = { workspace = true } fluent = { workspace = true } +[lints] +workspace = true + [[bin]] name = "arch" path = "src/main.rs" diff --git a/src/uu/b2sum/Cargo.toml b/src/uu/b2sum/Cargo.toml index 10c94ccf35d..c6da5edfec2 100644 --- a/src/uu/b2sum/Cargo.toml +++ b/src/uu/b2sum/Cargo.toml @@ -11,9 +11,6 @@ edition.workspace = true rust-version.workspace = true readme.workspace = true -[lints] -workspace = true - [lib] path = "src/b2sum.rs" test = false @@ -33,6 +30,9 @@ fluent = { workspace = true } [dev-dependencies] uucore = { workspace = true, features = ["benchmark"] } +[lints] +workspace = true + [[bin]] name = "b2sum" path = "src/main.rs" diff --git a/src/uu/base32/Cargo.toml b/src/uu/base32/Cargo.toml index 665c0e48637..0e56bf314a7 100644 --- a/src/uu/base32/Cargo.toml +++ b/src/uu/base32/Cargo.toml @@ -11,9 +11,6 @@ edition.workspace = true rust-version.workspace = true readme.workspace = true -[lints] -workspace = true - [lib] path = "src/base32.rs" doctest = false @@ -24,6 +21,9 @@ rustix = { workspace = true } uucore = { workspace = true, features = ["encoding"] } fluent = { workspace = true } +[lints] +workspace = true + [[bin]] name = "base32" path = "src/main.rs" diff --git a/src/uu/base64/Cargo.toml b/src/uu/base64/Cargo.toml index b5ac572dd75..2ea3c5612a9 100644 --- a/src/uu/base64/Cargo.toml +++ b/src/uu/base64/Cargo.toml @@ -11,9 +11,6 @@ edition.workspace = true rust-version.workspace = true readme.workspace = true -[lints] -workspace = true - [lib] path = "src/base64.rs" test = false @@ -30,6 +27,9 @@ divan = { workspace = true } tempfile = { workspace = true } uucore = { workspace = true, features = ["benchmark"] } +[lints] +workspace = true + [[bin]] name = "base64" path = "src/main.rs" diff --git a/src/uu/basename/Cargo.toml b/src/uu/basename/Cargo.toml index 73a0f06ef81..b924a435bf8 100644 --- a/src/uu/basename/Cargo.toml +++ b/src/uu/basename/Cargo.toml @@ -11,9 +11,6 @@ edition.workspace = true rust-version.workspace = true readme.workspace = true -[lints] -workspace = true - [lib] path = "src/basename.rs" test = false @@ -24,6 +21,9 @@ clap = { workspace = true } uucore = { workspace = true } fluent = { workspace = true } +[lints] +workspace = true + [[bin]] name = "basename" path = "src/main.rs" diff --git a/src/uu/basenc/Cargo.toml b/src/uu/basenc/Cargo.toml index 699623e480a..afeb89e45e2 100644 --- a/src/uu/basenc/Cargo.toml +++ b/src/uu/basenc/Cargo.toml @@ -11,9 +11,6 @@ edition.workspace = true rust-version.workspace = true readme.workspace = true -[lints] -workspace = true - [lib] path = "src/basenc.rs" test = false @@ -25,6 +22,9 @@ uucore = { workspace = true, features = ["encoding"] } uu_base32 = { workspace = true } fluent = { workspace = true } +[lints] +workspace = true + [[bin]] name = "basenc" path = "src/main.rs" diff --git a/src/uu/cat/Cargo.toml b/src/uu/cat/Cargo.toml index 9b0536be414..33037c298a3 100644 --- a/src/uu/cat/Cargo.toml +++ b/src/uu/cat/Cargo.toml @@ -11,9 +11,6 @@ edition.workspace = true rust-version.workspace = true readme.workspace = true -[lints] -workspace = true - [lib] path = "src/cat.rs" doctest = false @@ -38,6 +35,9 @@ windows-sys = { workspace = true, features = ["Win32_Storage_FileSystem"] } [target.'cfg(unix)'.dev-dependencies] rustix = { workspace = true } +[lints] +workspace = true + [[bin]] name = "cat" path = "src/main.rs" diff --git a/src/uu/chcon/Cargo.toml b/src/uu/chcon/Cargo.toml index 73398f0cd72..04b468882aa 100644 --- a/src/uu/chcon/Cargo.toml +++ b/src/uu/chcon/Cargo.toml @@ -11,9 +11,6 @@ edition.workspace = true rust-version.workspace = true readme.workspace = true -[lints] -workspace = true - [lib] path = "src/chcon.rs" test = false @@ -30,6 +27,9 @@ fts-sys = { workspace = true } rustix = { workspace = true, features = ["fs"] } fluent = { workspace = true } +[lints] +workspace = true + [[bin]] name = "chcon" path = "src/main.rs" diff --git a/src/uu/checksum_common/Cargo.toml b/src/uu/checksum_common/Cargo.toml index 8c09afb5d72..5b9d4eed41f 100644 --- a/src/uu/checksum_common/Cargo.toml +++ b/src/uu/checksum_common/Cargo.toml @@ -10,9 +10,6 @@ edition.workspace = true rust-version.workspace = true readme.workspace = true -[lints] -workspace = true - [lib] path = "src/lib.rs" test = false @@ -27,6 +24,9 @@ uucore = { workspace = true, features = [ ] } fluent = { workspace = true } +[lints] +workspace = true + # [[bench]] # name = "b2sum_bench" # harness = false diff --git a/src/uu/chgrp/Cargo.toml b/src/uu/chgrp/Cargo.toml index 81a1912db99..4cdc7df2577 100644 --- a/src/uu/chgrp/Cargo.toml +++ b/src/uu/chgrp/Cargo.toml @@ -11,9 +11,6 @@ edition.workspace = true rust-version.workspace = true readme.workspace = true -[lints] -workspace = true - [lib] path = "src/chgrp.rs" test = false @@ -24,6 +21,9 @@ clap = { workspace = true } uucore = { workspace = true, features = ["entries", "fs", "perms"] } fluent = { workspace = true } +[lints] +workspace = true + [[bin]] name = "chgrp" path = "src/main.rs" diff --git a/src/uu/chmod/Cargo.toml b/src/uu/chmod/Cargo.toml index 35a8b90eca7..be375f9bbf6 100644 --- a/src/uu/chmod/Cargo.toml +++ b/src/uu/chmod/Cargo.toml @@ -11,9 +11,6 @@ edition.workspace = true rust-version.workspace = true readme.workspace = true -[lints] -workspace = true - [lib] path = "src/chmod.rs" doctest = false @@ -27,6 +24,9 @@ fluent = { workspace = true } [target.'cfg(all(unix, not(target_os = "redox")))'.dependencies] uucore = { workspace = true, features = ["safe-traversal"] } +[lints] +workspace = true + [[bin]] name = "chmod" path = "src/main.rs" diff --git a/src/uu/chown/Cargo.toml b/src/uu/chown/Cargo.toml index 2a199b5ef95..556db80a030 100644 --- a/src/uu/chown/Cargo.toml +++ b/src/uu/chown/Cargo.toml @@ -11,9 +11,6 @@ edition.workspace = true rust-version.workspace = true readme.workspace = true -[lints] -workspace = true - [lib] path = "src/chown.rs" doctest = false @@ -28,6 +25,9 @@ uucore = { workspace = true, features = [ ] } fluent = { workspace = true } +[lints] +workspace = true + [[bin]] name = "chown" path = "src/main.rs" diff --git a/src/uu/chroot/Cargo.toml b/src/uu/chroot/Cargo.toml index d4f707d3df1..bbbbe4983fa 100644 --- a/src/uu/chroot/Cargo.toml +++ b/src/uu/chroot/Cargo.toml @@ -11,9 +11,6 @@ edition.workspace = true rust-version.workspace = true readme.workspace = true -[lints] -workspace = true - [lib] path = "src/chroot.rs" test = false @@ -26,6 +23,9 @@ thiserror = { workspace = true } uucore = { workspace = true, features = ["entries", "fs"] } fluent = { workspace = true } +[lints] +workspace = true + [[bin]] name = "chroot" path = "src/main.rs" diff --git a/src/uu/cksum/Cargo.toml b/src/uu/cksum/Cargo.toml index 4081bbf5534..11cb0c08401 100644 --- a/src/uu/cksum/Cargo.toml +++ b/src/uu/cksum/Cargo.toml @@ -11,9 +11,6 @@ edition.workspace = true rust-version.workspace = true readme.workspace = true -[lints] -workspace = true - [lib] path = "src/cksum.rs" test = false @@ -37,6 +34,9 @@ openssl = ["uucore/openssl"] divan = { workspace = true } uucore = { workspace = true, features = ["benchmark"] } +[lints] +workspace = true + [[bin]] name = "cksum" path = "src/main.rs" diff --git a/src/uu/comm/Cargo.toml b/src/uu/comm/Cargo.toml index c69c8b530da..22c30e245e7 100644 --- a/src/uu/comm/Cargo.toml +++ b/src/uu/comm/Cargo.toml @@ -11,9 +11,6 @@ edition.workspace = true rust-version.workspace = true readme.workspace = true -[lints] -workspace = true - [lib] path = "src/comm.rs" test = false @@ -24,6 +21,9 @@ clap = { workspace = true } uucore = { workspace = true, features = ["fs"] } fluent = { workspace = true } +[lints] +workspace = true + [[bin]] name = "comm" path = "src/main.rs" diff --git a/src/uu/cp/Cargo.toml b/src/uu/cp/Cargo.toml index cf412e89be6..43e6918cb65 100644 --- a/src/uu/cp/Cargo.toml +++ b/src/uu/cp/Cargo.toml @@ -11,9 +11,6 @@ edition.workspace = true rust-version.workspace = true readme.workspace = true -[lints] -workspace = true - [lib] path = "src/cp.rs" doctest = false @@ -69,3 +66,6 @@ harness = false [features] feat_selinux = ["selinux", "uucore/selinux"] feat_acl = ["exacl"] + +[lints] +workspace = true diff --git a/src/uu/csplit/Cargo.toml b/src/uu/csplit/Cargo.toml index 5105951fbe3..76b61aadca8 100644 --- a/src/uu/csplit/Cargo.toml +++ b/src/uu/csplit/Cargo.toml @@ -11,9 +11,6 @@ edition.workspace = true rust-version.workspace = true readme.workspace = true -[lints] -workspace = true - [lib] path = "src/csplit.rs" doctest = false @@ -34,6 +31,9 @@ divan = { workspace = true } tempfile = { workspace = true } uucore = { workspace = true, features = ["benchmark"] } +[lints] +workspace = true + [[bench]] name = "csplit_bench" harness = false diff --git a/src/uu/cut/Cargo.toml b/src/uu/cut/Cargo.toml index 66165a48e83..b6bb74bfefc 100644 --- a/src/uu/cut/Cargo.toml +++ b/src/uu/cut/Cargo.toml @@ -11,9 +11,6 @@ edition.workspace = true rust-version.workspace = true readme.workspace = true -[lints] -workspace = true - [lib] path = "src/cut.rs" doctest = false @@ -29,6 +26,9 @@ fluent = { workspace = true } divan = { workspace = true } uucore = { workspace = true, features = ["benchmark"] } +[lints] +workspace = true + [[bin]] name = "cut" path = "src/main.rs" diff --git a/src/uu/date/Cargo.toml b/src/uu/date/Cargo.toml index 2180ae8f5c9..497ad89d836 100644 --- a/src/uu/date/Cargo.toml +++ b/src/uu/date/Cargo.toml @@ -12,9 +12,6 @@ edition.workspace = true rust-version.workspace = true readme.workspace = true -[lints] -workspace = true - [lib] path = "src/date.rs" doctest = false @@ -61,6 +58,9 @@ divan = { workspace = true } tempfile = { workspace = true } uucore = { workspace = true, features = ["benchmark"] } +[lints] +workspace = true + [[bench]] name = "date_bench" harness = false diff --git a/src/uu/dd/Cargo.toml b/src/uu/dd/Cargo.toml index f5232d99290..2f7f6d0b47c 100644 --- a/src/uu/dd/Cargo.toml +++ b/src/uu/dd/Cargo.toml @@ -11,9 +11,6 @@ edition.workspace = true rust-version.workspace = true readme.workspace = true -[lints] -workspace = true - [lib] path = "src/dd.rs" doctest = false @@ -42,6 +39,9 @@ divan = { workspace = true } tempfile = { workspace = true } uucore = { workspace = true, features = ["benchmark"] } +[lints] +workspace = true + [[bench]] name = "dd_bench" harness = false diff --git a/src/uu/df/Cargo.toml b/src/uu/df/Cargo.toml index eaa9571f9f2..2711201dad8 100644 --- a/src/uu/df/Cargo.toml +++ b/src/uu/df/Cargo.toml @@ -11,9 +11,6 @@ edition.workspace = true rust-version.workspace = true readme.workspace = true -[lints] -workspace = true - [lib] path = "src/df.rs" doctest = false @@ -36,6 +33,9 @@ rustix = { workspace = true, features = ["fs"] } [target.'cfg(unix)'.dev-dependencies] rustix = { workspace = true, features = ["stdio"] } +[lints] +workspace = true + [[bin]] name = "df" path = "src/main.rs" diff --git a/src/uu/dir/Cargo.toml b/src/uu/dir/Cargo.toml index 5c6eac1ea65..bbb2bc6fea5 100644 --- a/src/uu/dir/Cargo.toml +++ b/src/uu/dir/Cargo.toml @@ -11,9 +11,6 @@ edition.workspace = true rust-version.workspace = true readme.workspace = true -[lints] -workspace = true - [lib] path = "src/dir.rs" test = false @@ -24,6 +21,9 @@ clap = { workspace = true, features = ["env"] } uucore = { workspace = true, features = ["entries", "fs", "quoting-style"] } uu_ls = { workspace = true } +[lints] +workspace = true + [[bin]] name = "dir" path = "src/main.rs" diff --git a/src/uu/dircolors/Cargo.toml b/src/uu/dircolors/Cargo.toml index 37628bf8291..ea16fd94adb 100644 --- a/src/uu/dircolors/Cargo.toml +++ b/src/uu/dircolors/Cargo.toml @@ -11,9 +11,6 @@ edition.workspace = true rust-version.workspace = true readme.workspace = true -[lints] -workspace = true - [lib] path = "src/dircolors.rs" doctest = false @@ -23,6 +20,9 @@ clap = { workspace = true } uucore = { workspace = true, features = ["colors", "parser"] } fluent = { workspace = true } +[lints] +workspace = true + [[bin]] name = "dircolors" path = "src/main.rs" diff --git a/src/uu/dirname/Cargo.toml b/src/uu/dirname/Cargo.toml index 21b84b406b0..eaceb487ff1 100644 --- a/src/uu/dirname/Cargo.toml +++ b/src/uu/dirname/Cargo.toml @@ -11,9 +11,6 @@ edition.workspace = true rust-version.workspace = true readme.workspace = true -[lints] -workspace = true - [lib] path = "src/dirname.rs" test = false @@ -24,6 +21,9 @@ clap = { workspace = true } uucore = { workspace = true } fluent = { workspace = true } +[lints] +workspace = true + [[bin]] name = "dirname" path = "src/main.rs" diff --git a/src/uu/du/Cargo.toml b/src/uu/du/Cargo.toml index b2c4cda1d7a..865b503bcd8 100644 --- a/src/uu/du/Cargo.toml +++ b/src/uu/du/Cargo.toml @@ -11,9 +11,6 @@ edition.workspace = true rust-version.workspace = true readme.workspace = true -[lints] -workspace = true - [lib] path = "src/du.rs" doctest = false @@ -52,6 +49,9 @@ divan = { workspace = true } tempfile = { workspace = true } uucore = { workspace = true, features = ["benchmark"] } +[lints] +workspace = true + [[bench]] name = "du_bench" harness = false diff --git a/src/uu/echo/Cargo.toml b/src/uu/echo/Cargo.toml index e23f9176214..370fbd5b729 100644 --- a/src/uu/echo/Cargo.toml +++ b/src/uu/echo/Cargo.toml @@ -11,9 +11,6 @@ edition.workspace = true rust-version.workspace = true readme.workspace = true -[lints] -workspace = true - [lib] path = "src/echo.rs" test = false @@ -32,6 +29,9 @@ path = "src/main.rs" divan = { workspace = true } uucore = { workspace = true, features = ["benchmark"] } +[lints] +workspace = true + [[bench]] name = "echo_bench" harness = false diff --git a/src/uu/env/Cargo.toml b/src/uu/env/Cargo.toml index 46aa1be7c99..ea86c8db381 100644 --- a/src/uu/env/Cargo.toml +++ b/src/uu/env/Cargo.toml @@ -11,9 +11,6 @@ edition.workspace = true rust-version.workspace = true readme.workspace = true -[lints] -workspace = true - [lib] path = "src/env.rs" doctest = false @@ -28,6 +25,9 @@ fluent = { workspace = true } [target.'cfg(unix)'.dependencies] nix = { workspace = true, features = ["signal"] } +[lints] +workspace = true + [[bin]] name = "env" path = "src/main.rs" diff --git a/src/uu/expand/Cargo.toml b/src/uu/expand/Cargo.toml index e010b1c1a58..aaf3f35043a 100644 --- a/src/uu/expand/Cargo.toml +++ b/src/uu/expand/Cargo.toml @@ -11,9 +11,6 @@ edition.workspace = true rust-version.workspace = true readme.workspace = true -[lints] -workspace = true - [lib] path = "src/expand.rs" doctest = false @@ -30,6 +27,9 @@ divan = { workspace = true } tempfile = { workspace = true } uucore = { workspace = true, features = ["benchmark"] } +[lints] +workspace = true + [[bin]] name = "expand" path = "src/main.rs" diff --git a/src/uu/expr/Cargo.toml b/src/uu/expr/Cargo.toml index 9206aa0edef..03539092a16 100644 --- a/src/uu/expr/Cargo.toml +++ b/src/uu/expr/Cargo.toml @@ -11,9 +11,6 @@ edition.workspace = true rust-version.workspace = true readme.workspace = true -[lints] -workspace = true - [lib] path = "src/expr.rs" doctest = false @@ -31,6 +28,9 @@ fluent = { workspace = true } divan = { workspace = true } uucore = { workspace = true, features = ["benchmark"] } +[lints] +workspace = true + [[bin]] name = "expr" path = "src/main.rs" diff --git a/src/uu/factor/Cargo.toml b/src/uu/factor/Cargo.toml index 7e8566bdca3..924cfdde213 100644 --- a/src/uu/factor/Cargo.toml +++ b/src/uu/factor/Cargo.toml @@ -11,9 +11,6 @@ edition.workspace = true rust-version.workspace = true readme.workspace = true -[lints] -workspace = true - [dependencies] clap = { workspace = true } uucore = { workspace = true } @@ -30,6 +27,9 @@ path = "src/main.rs" divan = { workspace = true } uucore = { workspace = true, features = ["benchmark"] } +[lints] +workspace = true + [lib] path = "src/factor.rs" doctest = false diff --git a/src/uu/false/Cargo.toml b/src/uu/false/Cargo.toml index 3628f82b00a..dbe2d776191 100644 --- a/src/uu/false/Cargo.toml +++ b/src/uu/false/Cargo.toml @@ -12,9 +12,6 @@ edition.workspace = true rust-version.workspace = true readme.workspace = true -[lints] -workspace = true - [lib] path = "src/false.rs" test = false @@ -33,6 +30,9 @@ path = "src/main.rs" divan = { workspace = true } uucore = { workspace = true, features = ["benchmark"] } +[lints] +workspace = true + [[bench]] name = "false_bench" harness = false diff --git a/src/uu/fmt/Cargo.toml b/src/uu/fmt/Cargo.toml index 0b1827795a3..acd60685ec2 100644 --- a/src/uu/fmt/Cargo.toml +++ b/src/uu/fmt/Cargo.toml @@ -11,9 +11,6 @@ edition.workspace = true rust-version.workspace = true readme.workspace = true -[lints] -workspace = true - [lib] path = "src/fmt.rs" doctest = false @@ -24,6 +21,9 @@ uucore = { workspace = true } thiserror = { workspace = true } fluent = { workspace = true } +[lints] +workspace = true + [[bin]] name = "fmt" path = "src/main.rs" diff --git a/src/uu/fold/Cargo.toml b/src/uu/fold/Cargo.toml index 7f867fe5c6c..7b67dc43a91 100644 --- a/src/uu/fold/Cargo.toml +++ b/src/uu/fold/Cargo.toml @@ -11,9 +11,6 @@ edition.workspace = true rust-version.workspace = true readme.workspace = true -[lints] -workspace = true - [lib] path = "src/fold.rs" test = false @@ -30,6 +27,9 @@ divan = { workspace = true } tempfile = { workspace = true } uucore = { workspace = true, features = ["benchmark"] } +[lints] +workspace = true + [[bin]] name = "fold" path = "src/main.rs" diff --git a/src/uu/groups/Cargo.toml b/src/uu/groups/Cargo.toml index 050d127d70a..c83746493af 100644 --- a/src/uu/groups/Cargo.toml +++ b/src/uu/groups/Cargo.toml @@ -11,9 +11,6 @@ edition.workspace = true rust-version.workspace = true readme.workspace = true -[lints] -workspace = true - [lib] path = "src/groups.rs" test = false @@ -25,6 +22,9 @@ thiserror = { workspace = true } uucore = { workspace = true, features = ["entries", "process"] } fluent = { workspace = true } +[lints] +workspace = true + [[bin]] name = "groups" path = "src/main.rs" diff --git a/src/uu/head/Cargo.toml b/src/uu/head/Cargo.toml index f3985b4e4a3..7b5f0da8951 100644 --- a/src/uu/head/Cargo.toml +++ b/src/uu/head/Cargo.toml @@ -11,9 +11,6 @@ edition.workspace = true rust-version.workspace = true readme.workspace = true -[lints] -workspace = true - [lib] path = "src/head.rs" doctest = false @@ -31,6 +28,9 @@ uucore = { workspace = true, features = [ ] } fluent = { workspace = true } +[lints] +workspace = true + [[bin]] name = "head" path = "src/main.rs" diff --git a/src/uu/hostid/Cargo.toml b/src/uu/hostid/Cargo.toml index 91f82212a75..00f397215ff 100644 --- a/src/uu/hostid/Cargo.toml +++ b/src/uu/hostid/Cargo.toml @@ -11,9 +11,6 @@ edition.workspace = true rust-version.workspace = true readme.workspace = true -[lints] -workspace = true - [lib] path = "src/hostid.rs" test = false @@ -25,6 +22,9 @@ libc = { workspace = true } uucore = { workspace = true } fluent = { workspace = true } +[lints] +workspace = true + [[bin]] name = "hostid" path = "src/main.rs" diff --git a/src/uu/hostname/Cargo.toml b/src/uu/hostname/Cargo.toml index a4ba3183d2c..3fd4785ecae 100644 --- a/src/uu/hostname/Cargo.toml +++ b/src/uu/hostname/Cargo.toml @@ -14,9 +14,6 @@ readme.workspace = true [package.metadata.cargo-udeps.ignore] normal = ["uucore_procs"] -[lints] -workspace = true - [lib] path = "src/hostname.rs" test = false @@ -49,3 +46,6 @@ harness = false divan = { workspace = true } tempfile = { workspace = true } uucore = { workspace = true, features = ["benchmark"] } + +[lints] +workspace = true diff --git a/src/uu/id/Cargo.toml b/src/uu/id/Cargo.toml index 3890aadc944..97ee5d75a35 100644 --- a/src/uu/id/Cargo.toml +++ b/src/uu/id/Cargo.toml @@ -11,9 +11,6 @@ edition.workspace = true rust-version.workspace = true readme.workspace = true -[lints] -workspace = true - [lib] path = "src/id.rs" test = false @@ -35,3 +32,6 @@ path = "src/main.rs" [features] feat_selinux = ["selinux"] smack = ["uucore/smack"] + +[lints] +workspace = true diff --git a/src/uu/install/Cargo.toml b/src/uu/install/Cargo.toml index 688f2da11c3..3843d597949 100644 --- a/src/uu/install/Cargo.toml +++ b/src/uu/install/Cargo.toml @@ -11,9 +11,6 @@ edition.workspace = true rust-version.workspace = true readme.workspace = true -[lints] -workspace = true - [lib] path = "src/install.rs" @@ -40,6 +37,9 @@ selinux = { workspace = true, optional = true } [features] selinux = ["dep:selinux", "uucore/selinux"] +[lints] +workspace = true + [[bin]] name = "install" path = "src/main.rs" diff --git a/src/uu/join/Cargo.toml b/src/uu/join/Cargo.toml index c3749a4dacc..f29b60a38a6 100644 --- a/src/uu/join/Cargo.toml +++ b/src/uu/join/Cargo.toml @@ -11,9 +11,6 @@ edition.workspace = true rust-version.workspace = true readme.workspace = true -[lints] -workspace = true - [lib] path = "src/join.rs" test = false @@ -35,6 +32,9 @@ divan = { workspace = true } tempfile = { workspace = true } uucore = { workspace = true, features = ["benchmark"] } +[lints] +workspace = true + [[bench]] name = "join_bench" harness = false diff --git a/src/uu/kill/Cargo.toml b/src/uu/kill/Cargo.toml index 45072046e42..d0cf4492362 100644 --- a/src/uu/kill/Cargo.toml +++ b/src/uu/kill/Cargo.toml @@ -11,9 +11,6 @@ edition.workspace = true rust-version.workspace = true readme.workspace = true -[lints] -workspace = true - [lib] path = "src/kill.rs" doctest = false @@ -28,6 +25,9 @@ fluent = { workspace = true } libc = { workspace = true } rustix = { workspace = true, features = ["process"] } +[lints] +workspace = true + [[bin]] name = "kill" path = "src/main.rs" diff --git a/src/uu/link/Cargo.toml b/src/uu/link/Cargo.toml index 610627f9fb3..7c66fb8e9bf 100644 --- a/src/uu/link/Cargo.toml +++ b/src/uu/link/Cargo.toml @@ -11,9 +11,6 @@ edition.workspace = true rust-version.workspace = true readme.workspace = true -[lints] -workspace = true - [lib] path = "src/link.rs" test = false @@ -24,6 +21,9 @@ clap = { workspace = true } uucore = { workspace = true } fluent = { workspace = true } +[lints] +workspace = true + [[bin]] name = "link" path = "src/main.rs" diff --git a/src/uu/ln/Cargo.toml b/src/uu/ln/Cargo.toml index c1804de2b67..8c53186517e 100644 --- a/src/uu/ln/Cargo.toml +++ b/src/uu/ln/Cargo.toml @@ -11,9 +11,6 @@ edition.workspace = true rust-version.workspace = true readme.workspace = true -[lints] -workspace = true - [lib] path = "src/ln.rs" test = false @@ -28,6 +25,9 @@ fluent = { workspace = true } [target.'cfg(target_os = "wasi")'.dependencies] rustix = { workspace = true, features = ["fs"] } +[lints] +workspace = true + [[bin]] name = "ln" path = "src/main.rs" diff --git a/src/uu/logname/Cargo.toml b/src/uu/logname/Cargo.toml index a4586157aeb..0932af47709 100644 --- a/src/uu/logname/Cargo.toml +++ b/src/uu/logname/Cargo.toml @@ -11,9 +11,6 @@ edition.workspace = true rust-version.workspace = true readme.workspace = true -[lints] -workspace = true - [lib] path = "src/logname.rs" test = false @@ -25,6 +22,9 @@ clap = { workspace = true } uucore = { workspace = true } fluent = { workspace = true } +[lints] +workspace = true + [[bin]] name = "logname" path = "src/main.rs" diff --git a/src/uu/ls/Cargo.toml b/src/uu/ls/Cargo.toml index 260743a1f9b..b1743c4c585 100644 --- a/src/uu/ls/Cargo.toml +++ b/src/uu/ls/Cargo.toml @@ -13,9 +13,6 @@ edition.workspace = true rust-version.workspace = true readme.workspace = true -[lints] -workspace = true - [lib] path = "src/ls.rs" doctest = false @@ -67,3 +64,6 @@ harness = false [features] feat_selinux = ["selinux", "uucore/selinux"] smack = ["uucore/smack"] + +[lints] +workspace = true diff --git a/src/uu/md5sum/Cargo.toml b/src/uu/md5sum/Cargo.toml index 8a071ff2989..391033e7148 100644 --- a/src/uu/md5sum/Cargo.toml +++ b/src/uu/md5sum/Cargo.toml @@ -11,9 +11,6 @@ edition.workspace = true rust-version.workspace = true readme.workspace = true -[lints] -workspace = true - [lib] path = "src/md5sum.rs" test = false @@ -36,6 +33,9 @@ openssl = ["uucore/openssl"] [dev-dependencies] uucore = { workspace = true, features = ["benchmark"] } +[lints] +workspace = true + [[bin]] name = "md5sum" path = "src/main.rs" diff --git a/src/uu/mkdir/Cargo.toml b/src/uu/mkdir/Cargo.toml index 95dfed3c0d1..460c0f55a76 100644 --- a/src/uu/mkdir/Cargo.toml +++ b/src/uu/mkdir/Cargo.toml @@ -11,9 +11,6 @@ edition.workspace = true rust-version.workspace = true readme.workspace = true -[lints] -workspace = true - [lib] path = "src/mkdir.rs" test = false @@ -31,6 +28,9 @@ rustix = { workspace = true, features = ["process", "fs"] } selinux = ["uucore/selinux"] smack = ["uucore/smack"] +[lints] +workspace = true + [[bin]] name = "mkdir" path = "src/main.rs" diff --git a/src/uu/mkfifo/Cargo.toml b/src/uu/mkfifo/Cargo.toml index 07c7b1e5dab..83301784d3c 100644 --- a/src/uu/mkfifo/Cargo.toml +++ b/src/uu/mkfifo/Cargo.toml @@ -11,9 +11,6 @@ edition.workspace = true rust-version.workspace = true readme.workspace = true -[lints] -workspace = true - [lib] path = "src/mkfifo.rs" test = false @@ -34,6 +31,9 @@ libc = { workspace = true } selinux = ["uucore/selinux"] smack = ["uucore/smack"] +[lints] +workspace = true + [[bin]] name = "mkfifo" path = "src/main.rs" diff --git a/src/uu/mknod/Cargo.toml b/src/uu/mknod/Cargo.toml index 03ad05b9d50..d195140130e 100644 --- a/src/uu/mknod/Cargo.toml +++ b/src/uu/mknod/Cargo.toml @@ -11,9 +11,6 @@ edition.workspace = true rust-version.workspace = true readme.workspace = true -[lints] -workspace = true - [lib] name = "uu_mknod" path = "src/mknod.rs" @@ -30,6 +27,9 @@ nix = { workspace = true } selinux = ["uucore/selinux"] smack = ["uucore/smack"] +[lints] +workspace = true + [[bin]] name = "mknod" path = "src/main.rs" diff --git a/src/uu/mktemp/Cargo.toml b/src/uu/mktemp/Cargo.toml index e7ca17a8c68..51399f1cbcd 100644 --- a/src/uu/mktemp/Cargo.toml +++ b/src/uu/mktemp/Cargo.toml @@ -11,9 +11,6 @@ edition.workspace = true rust-version.workspace = true readme.workspace = true -[lints] -workspace = true - [lib] path = "src/mktemp.rs" doctest = false @@ -26,6 +23,9 @@ thiserror = { workspace = true } uucore = { workspace = true } fluent = { workspace = true } +[lints] +workspace = true + [[bin]] name = "mktemp" path = "src/main.rs" diff --git a/src/uu/more/Cargo.toml b/src/uu/more/Cargo.toml index 379b1291627..5d9d1051f3a 100644 --- a/src/uu/more/Cargo.toml +++ b/src/uu/more/Cargo.toml @@ -11,9 +11,6 @@ edition.workspace = true rust-version.workspace = true readme.workspace = true -[lints] -workspace = true - [lib] path = "src/more.rs" doctest = false @@ -36,3 +33,6 @@ path = "src/main.rs" [dev-dependencies] tempfile = { workspace = true } + +[lints] +workspace = true diff --git a/src/uu/mv/Cargo.toml b/src/uu/mv/Cargo.toml index b7b42cee7d2..a7a041c74e8 100644 --- a/src/uu/mv/Cargo.toml +++ b/src/uu/mv/Cargo.toml @@ -11,9 +11,6 @@ edition.workspace = true rust-version.workspace = true readme.workspace = true -[lints] -workspace = true - [lib] path = "src/mv.rs" doctest = false @@ -48,7 +45,6 @@ windows-sys = { workspace = true, features = [ libc = { workspace = true } rustix = { workspace = true, features = ["fs"] } - [features] selinux = ["uucore/selinux"] @@ -61,6 +57,9 @@ divan = { workspace = true } tempfile = { workspace = true } uucore = { workspace = true, features = ["benchmark"] } +[lints] +workspace = true + [[bench]] name = "mv_bench" harness = false diff --git a/src/uu/nice/Cargo.toml b/src/uu/nice/Cargo.toml index 4d9ec5563a1..865a50ffe0e 100644 --- a/src/uu/nice/Cargo.toml +++ b/src/uu/nice/Cargo.toml @@ -11,9 +11,6 @@ edition.workspace = true rust-version.workspace = true readme.workspace = true -[lints] -workspace = true - [lib] path = "src/nice.rs" test = false @@ -27,6 +24,9 @@ fluent = { workspace = true } [target.'cfg(unix)'.dependencies] rustix = { workspace = true, features = ["process"] } +[lints] +workspace = true + [[bin]] name = "nice" path = "src/main.rs" diff --git a/src/uu/nl/Cargo.toml b/src/uu/nl/Cargo.toml index ed1d1670d0e..5301c4414b4 100644 --- a/src/uu/nl/Cargo.toml +++ b/src/uu/nl/Cargo.toml @@ -11,9 +11,6 @@ edition.workspace = true rust-version.workspace = true readme.workspace = true -[lints] -workspace = true - [lib] path = "src/nl.rs" doctest = false @@ -30,6 +27,9 @@ divan = { workspace = true } tempfile = { workspace = true } uucore = { workspace = true, features = ["benchmark"] } +[lints] +workspace = true + [[bin]] name = "nl" path = "src/main.rs" diff --git a/src/uu/nohup/Cargo.toml b/src/uu/nohup/Cargo.toml index 8dd08213726..b8470a04840 100644 --- a/src/uu/nohup/Cargo.toml +++ b/src/uu/nohup/Cargo.toml @@ -11,9 +11,6 @@ edition.workspace = true rust-version.workspace = true readme.workspace = true -[lints] -workspace = true - [lib] path = "src/nohup.rs" test = false @@ -27,6 +24,9 @@ uucore = { workspace = true, features = ["fs"] } thiserror = { workspace = true } fluent = { workspace = true } +[lints] +workspace = true + [[bin]] name = "nohup" path = "src/main.rs" diff --git a/src/uu/nproc/Cargo.toml b/src/uu/nproc/Cargo.toml index 853be86fd87..5d3a6e9a675 100644 --- a/src/uu/nproc/Cargo.toml +++ b/src/uu/nproc/Cargo.toml @@ -11,9 +11,6 @@ edition.workspace = true rust-version.workspace = true readme.workspace = true -[lints] -workspace = true - [lib] path = "src/nproc.rs" test = false @@ -26,6 +23,8 @@ libc = { workspace = true } rustix = { workspace = true, features = ["thread"] } uucore = { workspace = true, features = ["fs"] } +[lints] +workspace = true [[bin]] name = "nproc" diff --git a/src/uu/numfmt/Cargo.toml b/src/uu/numfmt/Cargo.toml index 73030857c11..18422b8c59d 100644 --- a/src/uu/numfmt/Cargo.toml +++ b/src/uu/numfmt/Cargo.toml @@ -11,9 +11,6 @@ edition.workspace = true rust-version.workspace = true readme.workspace = true -[lints] -workspace = true - [lib] path = "src/numfmt.rs" @@ -33,6 +30,9 @@ memchr = { workspace = true } divan = { workspace = true } uucore = { workspace = true, features = ["benchmark"] } +[lints] +workspace = true + [[bin]] name = "numfmt" path = "src/main.rs" diff --git a/src/uu/od/Cargo.toml b/src/uu/od/Cargo.toml index 1804630d43f..38f636137bf 100644 --- a/src/uu/od/Cargo.toml +++ b/src/uu/od/Cargo.toml @@ -11,9 +11,6 @@ edition.workspace = true rust-version.workspace = true readme.workspace = true -[lints] -workspace = true - [lib] path = "src/od.rs" @@ -26,6 +23,9 @@ uucore = { workspace = true, features = ["fs", "parser-size"] } fluent = { workspace = true } libc.workspace = true +[lints] +workspace = true + [[bin]] name = "od" path = "src/main.rs" diff --git a/src/uu/paste/Cargo.toml b/src/uu/paste/Cargo.toml index dbb1bfdf577..0d53703b503 100644 --- a/src/uu/paste/Cargo.toml +++ b/src/uu/paste/Cargo.toml @@ -11,9 +11,6 @@ edition.workspace = true rust-version.workspace = true readme.workspace = true -[lints] -workspace = true - [lib] path = "src/paste.rs" test = false @@ -24,6 +21,9 @@ clap = { workspace = true } uucore = { workspace = true, features = ["i18n-charmap"] } fluent = { workspace = true } +[lints] +workspace = true + [[bin]] name = "paste" path = "src/main.rs" diff --git a/src/uu/pathchk/Cargo.toml b/src/uu/pathchk/Cargo.toml index 528594e2924..bc5f597c4c9 100644 --- a/src/uu/pathchk/Cargo.toml +++ b/src/uu/pathchk/Cargo.toml @@ -11,9 +11,6 @@ edition.workspace = true rust-version.workspace = true readme.workspace = true -[lints] -workspace = true - [lib] path = "src/pathchk.rs" test = false @@ -25,6 +22,9 @@ libc = { workspace = true } uucore = { workspace = true } fluent = { workspace = true } +[lints] +workspace = true + [[bin]] name = "pathchk" path = "src/main.rs" diff --git a/src/uu/pinky/Cargo.toml b/src/uu/pinky/Cargo.toml index 5a6a7c4b942..75005632398 100644 --- a/src/uu/pinky/Cargo.toml +++ b/src/uu/pinky/Cargo.toml @@ -13,9 +13,6 @@ edition.workspace = true rust-version.workspace = true readme.workspace = true -[lints] -workspace = true - [features] feat_systemd_logind = ["uucore/feat_systemd_logind"] @@ -28,6 +25,9 @@ clap = { workspace = true } uucore = { workspace = true, features = ["utmpx", "entries"] } fluent = { workspace = true } +[lints] +workspace = true + [[bin]] name = "pinky" path = "src/main.rs" diff --git a/src/uu/pr/Cargo.toml b/src/uu/pr/Cargo.toml index 5a464bfda7f..042f14e13d5 100644 --- a/src/uu/pr/Cargo.toml +++ b/src/uu/pr/Cargo.toml @@ -11,9 +11,6 @@ edition.workspace = true rust-version.workspace = true readme.workspace = true -[lints] -workspace = true - [lib] path = "src/pr.rs" test = false @@ -28,6 +25,9 @@ regex = { workspace = true } thiserror = { workspace = true } fluent = { workspace = true } +[lints] +workspace = true + [[bin]] name = "pr" path = "src/main.rs" diff --git a/src/uu/printenv/Cargo.toml b/src/uu/printenv/Cargo.toml index fa0a2d56a03..cb6a009b1dc 100644 --- a/src/uu/printenv/Cargo.toml +++ b/src/uu/printenv/Cargo.toml @@ -11,9 +11,6 @@ edition.workspace = true rust-version.workspace = true readme.workspace = true -[lints] -workspace = true - [lib] path = "src/printenv.rs" test = false @@ -24,6 +21,9 @@ clap = { workspace = true } uucore = { workspace = true } fluent = { workspace = true } +[lints] +workspace = true + [[bin]] name = "printenv" path = "src/main.rs" diff --git a/src/uu/printf/Cargo.toml b/src/uu/printf/Cargo.toml index b976d8cd618..f4ec4621a67 100644 --- a/src/uu/printf/Cargo.toml +++ b/src/uu/printf/Cargo.toml @@ -11,9 +11,6 @@ edition.workspace = true rust-version.workspace = true readme.workspace = true -[lints] -workspace = true - [lib] path = "src/printf.rs" test = false @@ -24,6 +21,9 @@ clap = { workspace = true } uucore = { workspace = true, features = ["format", "quoting-style"] } fluent = { workspace = true } +[lints] +workspace = true + [[bin]] name = "printf" path = "src/main.rs" diff --git a/src/uu/ptx/Cargo.toml b/src/uu/ptx/Cargo.toml index 83225408a97..088faef4290 100644 --- a/src/uu/ptx/Cargo.toml +++ b/src/uu/ptx/Cargo.toml @@ -11,9 +11,6 @@ edition.workspace = true rust-version.workspace = true readme.workspace = true -[lints] -workspace = true - [lib] path = "src/ptx.rs" test = false @@ -26,6 +23,9 @@ uucore = { workspace = true } thiserror = { workspace = true } fluent = { workspace = true } +[lints] +workspace = true + [[bin]] name = "ptx" path = "src/main.rs" diff --git a/src/uu/pwd/Cargo.toml b/src/uu/pwd/Cargo.toml index aad481d0c26..549ac63adf9 100644 --- a/src/uu/pwd/Cargo.toml +++ b/src/uu/pwd/Cargo.toml @@ -11,9 +11,6 @@ edition.workspace = true rust-version.workspace = true readme.workspace = true -[lints] -workspace = true - [lib] path = "src/pwd.rs" test = false @@ -24,6 +21,9 @@ clap = { workspace = true } uucore = { workspace = true } fluent = { workspace = true } +[lints] +workspace = true + [[bin]] name = "pwd" path = "src/main.rs" diff --git a/src/uu/readlink/Cargo.toml b/src/uu/readlink/Cargo.toml index 75f133a05bc..7f927069e69 100644 --- a/src/uu/readlink/Cargo.toml +++ b/src/uu/readlink/Cargo.toml @@ -11,9 +11,6 @@ edition.workspace = true rust-version.workspace = true readme.workspace = true -[lints] -workspace = true - [lib] path = "src/readlink.rs" test = false @@ -24,6 +21,9 @@ clap = { workspace = true } uucore = { workspace = true, features = ["fs"] } fluent = { workspace = true } +[lints] +workspace = true + [[bin]] name = "readlink" path = "src/main.rs" diff --git a/src/uu/realpath/Cargo.toml b/src/uu/realpath/Cargo.toml index f4d03ddf840..a07dd650508 100644 --- a/src/uu/realpath/Cargo.toml +++ b/src/uu/realpath/Cargo.toml @@ -11,9 +11,6 @@ edition.workspace = true rust-version.workspace = true readme.workspace = true -[lints] -workspace = true - [lib] path = "src/realpath.rs" test = false @@ -24,6 +21,9 @@ clap = { workspace = true } uucore = { workspace = true, features = ["fs"] } fluent = { workspace = true } +[lints] +workspace = true + [[bin]] name = "realpath" path = "src/main.rs" diff --git a/src/uu/rm/Cargo.toml b/src/uu/rm/Cargo.toml index d82fc0b3aa9..141b72c6670 100644 --- a/src/uu/rm/Cargo.toml +++ b/src/uu/rm/Cargo.toml @@ -11,9 +11,6 @@ edition.workspace = true rust-version.workspace = true readme.workspace = true -[lints] -workspace = true - [lib] path = "src/rm.rs" doctest = false @@ -43,6 +40,9 @@ divan = { workspace = true } tempfile = { workspace = true } uucore = { workspace = true, features = ["benchmark"] } +[lints] +workspace = true + [[bench]] name = "rm_bench" harness = false diff --git a/src/uu/rmdir/Cargo.toml b/src/uu/rmdir/Cargo.toml index 0f46670db53..e787dc99f28 100644 --- a/src/uu/rmdir/Cargo.toml +++ b/src/uu/rmdir/Cargo.toml @@ -11,9 +11,6 @@ edition.workspace = true rust-version.workspace = true readme.workspace = true -[lints] -workspace = true - [lib] path = "src/rmdir.rs" test = false @@ -25,6 +22,9 @@ uucore = { workspace = true, features = ["fs"] } libc = { workspace = true } fluent = { workspace = true } +[lints] +workspace = true + [[bin]] name = "rmdir" path = "src/main.rs" diff --git a/src/uu/runcon/Cargo.toml b/src/uu/runcon/Cargo.toml index 51a468fb2b0..47d69f09299 100644 --- a/src/uu/runcon/Cargo.toml +++ b/src/uu/runcon/Cargo.toml @@ -11,9 +11,6 @@ license.workspace = true version.workspace = true readme.workspace = true -[lints] -workspace = true - [lib] path = "src/runcon.rs" test = false @@ -28,6 +25,9 @@ thiserror = { workspace = true } libc = { workspace = true } fluent = { workspace = true } +[lints] +workspace = true + [[bin]] name = "runcon" path = "src/main.rs" diff --git a/src/uu/seq/Cargo.toml b/src/uu/seq/Cargo.toml index e05bfb4e715..65b5d5297ec 100644 --- a/src/uu/seq/Cargo.toml +++ b/src/uu/seq/Cargo.toml @@ -12,9 +12,6 @@ edition.workspace = true rust-version.workspace = true readme.workspace = true -[lints] -workspace = true - [lib] path = "src/seq.rs" doctest = false @@ -43,6 +40,9 @@ path = "src/main.rs" divan = { workspace = true } uucore = { workspace = true, features = ["benchmark"] } +[lints] +workspace = true + [[bench]] name = "seq_bench" harness = false diff --git a/src/uu/sha1sum/Cargo.toml b/src/uu/sha1sum/Cargo.toml index bc265752872..2c9fe33f79e 100644 --- a/src/uu/sha1sum/Cargo.toml +++ b/src/uu/sha1sum/Cargo.toml @@ -11,9 +11,6 @@ edition.workspace = true rust-version.workspace = true readme.workspace = true -[lints] -workspace = true - [lib] path = "src/sha1sum.rs" test = false @@ -36,6 +33,9 @@ openssl = ["uucore/openssl"] [dev-dependencies] uucore = { workspace = true, features = ["benchmark"] } +[lints] +workspace = true + [[bin]] name = "sha1sum" path = "src/main.rs" diff --git a/src/uu/sha224sum/Cargo.toml b/src/uu/sha224sum/Cargo.toml index be0362f3f3f..a34f582dd91 100644 --- a/src/uu/sha224sum/Cargo.toml +++ b/src/uu/sha224sum/Cargo.toml @@ -11,9 +11,6 @@ edition.workspace = true rust-version.workspace = true readme.workspace = true -[lints] -workspace = true - [lib] path = "src/sha224sum.rs" test = false @@ -36,6 +33,9 @@ openssl = ["uucore/openssl"] [dev-dependencies] uucore = { workspace = true, features = ["benchmark"] } +[lints] +workspace = true + [[bin]] name = "sha224sum" path = "src/main.rs" diff --git a/src/uu/sha256sum/Cargo.toml b/src/uu/sha256sum/Cargo.toml index 1d2c167c833..7c7a4b9c598 100644 --- a/src/uu/sha256sum/Cargo.toml +++ b/src/uu/sha256sum/Cargo.toml @@ -11,9 +11,6 @@ edition.workspace = true rust-version.workspace = true readme.workspace = true -[lints] -workspace = true - [lib] path = "src/sha256sum.rs" test = false @@ -36,6 +33,9 @@ openssl = ["uucore/openssl"] [dev-dependencies] uucore = { workspace = true, features = ["benchmark"] } +[lints] +workspace = true + [[bin]] name = "sha256sum" path = "src/main.rs" diff --git a/src/uu/sha384sum/Cargo.toml b/src/uu/sha384sum/Cargo.toml index 52ac45c21b5..12375527e2a 100644 --- a/src/uu/sha384sum/Cargo.toml +++ b/src/uu/sha384sum/Cargo.toml @@ -11,9 +11,6 @@ edition.workspace = true rust-version.workspace = true readme.workspace = true -[lints] -workspace = true - [lib] path = "src/sha384sum.rs" test = false @@ -36,6 +33,9 @@ openssl = ["uucore/openssl"] [dev-dependencies] uucore = { workspace = true, features = ["benchmark"] } +[lints] +workspace = true + [[bin]] name = "sha384sum" path = "src/main.rs" diff --git a/src/uu/sha512sum/Cargo.toml b/src/uu/sha512sum/Cargo.toml index df5e60ebc6b..9f681817e32 100644 --- a/src/uu/sha512sum/Cargo.toml +++ b/src/uu/sha512sum/Cargo.toml @@ -11,9 +11,6 @@ edition.workspace = true rust-version.workspace = true readme.workspace = true -[lints] -workspace = true - [lib] path = "src/sha512sum.rs" test = false @@ -36,6 +33,9 @@ openssl = ["uucore/openssl"] [dev-dependencies] uucore = { workspace = true, features = ["benchmark"] } +[lints] +workspace = true + [[bin]] name = "sha512sum" path = "src/main.rs" diff --git a/src/uu/shred/Cargo.toml b/src/uu/shred/Cargo.toml index 5a9a109ae0a..19bf1a6965b 100644 --- a/src/uu/shred/Cargo.toml +++ b/src/uu/shred/Cargo.toml @@ -11,9 +11,6 @@ edition.workspace = true rust-version.workspace = true readme.workspace = true -[lints] -workspace = true - [lib] path = "src/shred.rs" doctest = false @@ -25,6 +22,9 @@ uucore = { workspace = true, features = ["parser-size"] } libc = { workspace = true } fluent = { workspace = true } +[lints] +workspace = true + [[bin]] name = "shred" path = "src/main.rs" diff --git a/src/uu/shuf/Cargo.toml b/src/uu/shuf/Cargo.toml index 54b8d73811b..ccfd31cc410 100644 --- a/src/uu/shuf/Cargo.toml +++ b/src/uu/shuf/Cargo.toml @@ -11,9 +11,6 @@ edition.workspace = true rust-version.workspace = true readme.workspace = true -[lints] -workspace = true - [lib] path = "src/shuf.rs" doctest = false @@ -39,3 +36,6 @@ harness = false [dev-dependencies] divan = { workspace = true } uucore = { workspace = true, features = ["benchmark"] } + +[lints] +workspace = true diff --git a/src/uu/sleep/Cargo.toml b/src/uu/sleep/Cargo.toml index a8cc22305a6..63f2d09d285 100644 --- a/src/uu/sleep/Cargo.toml +++ b/src/uu/sleep/Cargo.toml @@ -11,9 +11,6 @@ edition.workspace = true rust-version.workspace = true readme.workspace = true -[lints] -workspace = true - [lib] path = "src/sleep.rs" test = false @@ -24,6 +21,9 @@ clap = { workspace = true } uucore = { workspace = true, features = ["parser"] } fluent = { workspace = true } +[lints] +workspace = true + [[bin]] name = "sleep" path = "src/main.rs" diff --git a/src/uu/sort/Cargo.toml b/src/uu/sort/Cargo.toml index db51104c096..5eaf7d9bccf 100644 --- a/src/uu/sort/Cargo.toml +++ b/src/uu/sort/Cargo.toml @@ -13,9 +13,6 @@ edition.workspace = true rust-version.workspace = true readme.workspace = true -[lints] -workspace = true - [lib] path = "src/sort.rs" doctest = false @@ -68,6 +65,9 @@ uucore = { workspace = true, features = [ "i18n-datetime", ] } +[lints] +workspace = true + [[bin]] name = "sort" path = "src/main.rs" diff --git a/src/uu/split/Cargo.toml b/src/uu/split/Cargo.toml index 60dbba0ddd0..acf9e98401e 100644 --- a/src/uu/split/Cargo.toml +++ b/src/uu/split/Cargo.toml @@ -11,9 +11,6 @@ edition.workspace = true rust-version.workspace = true readme.workspace = true -[lints] -workspace = true - [lib] path = "src/split.rs" doctest = false @@ -35,6 +32,9 @@ divan = { workspace = true } tempfile = { workspace = true } uucore = { workspace = true, features = ["benchmark"] } +[lints] +workspace = true + [[bench]] name = "split_bench" harness = false diff --git a/src/uu/stat/Cargo.toml b/src/uu/stat/Cargo.toml index 21693a57939..ef863228749 100644 --- a/src/uu/stat/Cargo.toml +++ b/src/uu/stat/Cargo.toml @@ -11,9 +11,6 @@ edition.workspace = true rust-version.workspace = true readme.workspace = true -[lints] -workspace = true - [lib] path = "src/stat.rs" doctest = false @@ -35,6 +32,9 @@ fluent = { workspace = true } [features] selinux = ["uucore/selinux"] +[lints] +workspace = true + [[bin]] name = "stat" path = "src/main.rs" diff --git a/src/uu/stdbuf/Cargo.toml b/src/uu/stdbuf/Cargo.toml index 9a65221598a..365fe0f8845 100644 --- a/src/uu/stdbuf/Cargo.toml +++ b/src/uu/stdbuf/Cargo.toml @@ -12,9 +12,6 @@ edition.workspace = true rust-version.workspace = true readme.workspace = true -[lints] -workspace = true - [lib] path = "src/stdbuf.rs" test = false @@ -50,6 +47,9 @@ libstdbuf = { package = "uu_stdbuf_libstdbuf", version = "0.9.0", path = "src/li [features] feat_external_libstdbuf = [] +[lints] +workspace = true + [[bin]] name = "stdbuf" path = "src/main.rs" diff --git a/src/uu/stdbuf/src/libstdbuf/Cargo.toml b/src/uu/stdbuf/src/libstdbuf/Cargo.toml index 7969db29f58..df9e5a81a03 100644 --- a/src/uu/stdbuf/src/libstdbuf/Cargo.toml +++ b/src/uu/stdbuf/src/libstdbuf/Cargo.toml @@ -10,9 +10,6 @@ categories.workspace = true edition.workspace = true rust-version.workspace = true -[lints] -workspace = true - [lib] name = "stdbuf" path = "src/libstdbuf.rs" @@ -22,3 +19,6 @@ test = false [dependencies] ctor = { workspace = true } libc = { workspace = true } + +[lints] +workspace = true diff --git a/src/uu/stty/Cargo.toml b/src/uu/stty/Cargo.toml index e1fb8c5bac3..f725bec55fe 100644 --- a/src/uu/stty/Cargo.toml +++ b/src/uu/stty/Cargo.toml @@ -11,9 +11,6 @@ edition.workspace = true rust-version.workspace = true readme.workspace = true -[lints] -workspace = true - [lib] path = "src/stty.rs" doctest = false @@ -26,6 +23,9 @@ fluent = { workspace = true } [target.'cfg(unix)'.dependencies] nix = { workspace = true, features = ["ioctl", "term"] } +[lints] +workspace = true + [[bin]] name = "stty" path = "src/main.rs" diff --git a/src/uu/sum/Cargo.toml b/src/uu/sum/Cargo.toml index 11b558b5703..bbaabc13e05 100644 --- a/src/uu/sum/Cargo.toml +++ b/src/uu/sum/Cargo.toml @@ -11,9 +11,6 @@ edition.workspace = true rust-version.workspace = true readme.workspace = true -[lints] -workspace = true - [lib] path = "src/sum.rs" test = false @@ -25,6 +22,9 @@ rustix = { workspace = true } uucore = { workspace = true } fluent = { workspace = true } +[lints] +workspace = true + [[bin]] name = "sum" path = "src/main.rs" diff --git a/src/uu/sync/Cargo.toml b/src/uu/sync/Cargo.toml index 89fbdcf2735..72af015344c 100644 --- a/src/uu/sync/Cargo.toml +++ b/src/uu/sync/Cargo.toml @@ -14,9 +14,6 @@ readme.workspace = true [package.metadata.cargo-udeps.ignore] normal = ["uucore_procs"] -[lints] -workspace = true - [lib] path = "src/sync.rs" test = false @@ -37,6 +34,9 @@ windows-sys = { workspace = true, features = [ "Win32_Foundation", ] } +[lints] +workspace = true + [[bin]] name = "sync" path = "src/main.rs" diff --git a/src/uu/tac/Cargo.toml b/src/uu/tac/Cargo.toml index 4e93f8ed942..9362f244e2a 100644 --- a/src/uu/tac/Cargo.toml +++ b/src/uu/tac/Cargo.toml @@ -13,9 +13,6 @@ edition.workspace = true rust-version.workspace = true readme.workspace = true -[lints] -workspace = true - [lib] path = "src/tac.rs" doctest = false @@ -31,6 +28,9 @@ thiserror = { workspace = true } fluent = { workspace = true } tempfile = { workspace = true } +[lints] +workspace = true + [[bin]] name = "tac" path = "src/main.rs" diff --git a/src/uu/tail/Cargo.toml b/src/uu/tail/Cargo.toml index 6462fa28595..0315f6a56d0 100644 --- a/src/uu/tail/Cargo.toml +++ b/src/uu/tail/Cargo.toml @@ -12,9 +12,6 @@ edition.workspace = true rust-version.workspace = true readme.workspace = true -[lints] -workspace = true - [lib] path = "src/tail.rs" doctest = false @@ -45,6 +42,9 @@ windows-sys = { workspace = true, features = [ [dev-dependencies] rstest = { workspace = true } +[lints] +workspace = true + [[bin]] name = "tail" path = "src/main.rs" diff --git a/src/uu/tee/Cargo.toml b/src/uu/tee/Cargo.toml index 30e664f8e8f..10e59d519b8 100644 --- a/src/uu/tee/Cargo.toml +++ b/src/uu/tee/Cargo.toml @@ -11,9 +11,6 @@ edition.workspace = true rust-version.workspace = true readme.workspace = true -[lints] -workspace = true - [lib] path = "src/tee.rs" test = false @@ -33,6 +30,9 @@ uucore = { workspace = true, features = ["benchmark"] } rustix = { workspace = true, features = ["pipe"] } uucore = { workspace = true, features = ["pipes"] } +[lints] +workspace = true + [[bin]] name = "tee" path = "src/main.rs" diff --git a/src/uu/test/Cargo.toml b/src/uu/test/Cargo.toml index 4d9e58ba54f..9bce3c31b7f 100644 --- a/src/uu/test/Cargo.toml +++ b/src/uu/test/Cargo.toml @@ -11,9 +11,6 @@ edition.workspace = true rust-version.workspace = true readme.workspace = true -[lints] -workspace = true - [lib] path = "src/test.rs" doctest = false @@ -28,6 +25,9 @@ uucore = { workspace = true, features = ["process"] } [dev-dependencies] tempfile = { workspace = true } +[lints] +workspace = true + [[bin]] name = "test" path = "src/main.rs" diff --git a/src/uu/timeout/Cargo.toml b/src/uu/timeout/Cargo.toml index de6650f552b..f8711b3c1a3 100644 --- a/src/uu/timeout/Cargo.toml +++ b/src/uu/timeout/Cargo.toml @@ -11,9 +11,6 @@ edition.workspace = true rust-version.workspace = true readme.workspace = true -[lints] -workspace = true - [lib] path = "src/timeout.rs" test = false @@ -36,6 +33,9 @@ path = "src/main.rs" divan = { workspace = true } uucore = { workspace = true, features = ["benchmark"] } +[lints] +workspace = true + [[bench]] name = "timeout_bench" harness = false diff --git a/src/uu/touch/Cargo.toml b/src/uu/touch/Cargo.toml index 447f795d1bf..be19f567c55 100644 --- a/src/uu/touch/Cargo.toml +++ b/src/uu/touch/Cargo.toml @@ -12,9 +12,6 @@ edition.workspace = true rust-version.workspace = true readme.workspace = true -[lints] -workspace = true - [lib] path = "src/touch.rs" doctest = false @@ -41,6 +38,9 @@ windows-sys = { workspace = true, features = [ "Win32_Foundation", ] } +[lints] +workspace = true + [[bin]] name = "touch" path = "src/main.rs" diff --git a/src/uu/tr/Cargo.toml b/src/uu/tr/Cargo.toml index 45e95ebfe5d..d44009ba19b 100644 --- a/src/uu/tr/Cargo.toml +++ b/src/uu/tr/Cargo.toml @@ -11,9 +11,6 @@ edition.workspace = true rust-version.workspace = true readme.workspace = true -[lints] -workspace = true - [lib] path = "src/tr.rs" test = false @@ -31,6 +28,9 @@ divan = { workspace = true } rustix = { workspace = true, features = ["stdio", "fs"] } uucore = { workspace = true, features = ["benchmark"] } +[lints] +workspace = true + [[bin]] name = "tr" path = "src/main.rs" diff --git a/src/uu/true/Cargo.toml b/src/uu/true/Cargo.toml index 5f26d04aefd..474c796f205 100644 --- a/src/uu/true/Cargo.toml +++ b/src/uu/true/Cargo.toml @@ -11,9 +11,6 @@ edition.workspace = true rust-version.workspace = true readme.workspace = true -[lints] -workspace = true - [lib] path = "src/true.rs" test = false @@ -32,6 +29,9 @@ path = "src/main.rs" divan = { workspace = true } uucore = { workspace = true, features = ["benchmark"] } +[lints] +workspace = true + [[bench]] name = "true_bench" harness = false diff --git a/src/uu/truncate/Cargo.toml b/src/uu/truncate/Cargo.toml index b954022ac7e..2b0a761e44b 100644 --- a/src/uu/truncate/Cargo.toml +++ b/src/uu/truncate/Cargo.toml @@ -11,9 +11,6 @@ edition.workspace = true rust-version.workspace = true readme.workspace = true -[lints] -workspace = true - [lib] path = "src/truncate.rs" doctest = false @@ -23,6 +20,9 @@ clap = { workspace = true } uucore = { workspace = true, features = ["parser-size"] } fluent = { workspace = true } +[lints] +workspace = true + [[bin]] name = "truncate" path = "src/main.rs" diff --git a/src/uu/tsort/Cargo.toml b/src/uu/tsort/Cargo.toml index 8f05185ba7d..491cefbf7ee 100644 --- a/src/uu/tsort/Cargo.toml +++ b/src/uu/tsort/Cargo.toml @@ -12,9 +12,6 @@ edition.workspace = true rust-version.workspace = true readme.workspace = true -[lints] -workspace = true - [lib] path = "src/tsort.rs" test = false @@ -39,6 +36,9 @@ path = "src/main.rs" divan = { workspace = true } uucore = { workspace = true, features = ["benchmark"] } +[lints] +workspace = true + [[bench]] name = "tsort_bench" harness = false diff --git a/src/uu/tty/Cargo.toml b/src/uu/tty/Cargo.toml index 321ac2f082b..ccc54592be0 100644 --- a/src/uu/tty/Cargo.toml +++ b/src/uu/tty/Cargo.toml @@ -11,9 +11,6 @@ edition.workspace = true rust-version.workspace = true readme.workspace = true -[lints] -workspace = true - [lib] path = "src/tty.rs" test = false @@ -33,6 +30,9 @@ windows-sys = { workspace = true, features = [ "Win32_Foundation", ] } +[lints] +workspace = true + [[bin]] name = "tty" path = "src/main.rs" diff --git a/src/uu/uname/Cargo.toml b/src/uu/uname/Cargo.toml index 1e7986e715a..66edf480c89 100644 --- a/src/uu/uname/Cargo.toml +++ b/src/uu/uname/Cargo.toml @@ -11,9 +11,6 @@ edition.workspace = true rust-version.workspace = true readme.workspace = true -[lints] -workspace = true - [lib] path = "src/uname.rs" test = false @@ -25,6 +22,9 @@ clap = { workspace = true } uucore = { workspace = true } fluent = { workspace = true } +[lints] +workspace = true + [[bin]] name = "uname" path = "src/main.rs" diff --git a/src/uu/unexpand/Cargo.toml b/src/uu/unexpand/Cargo.toml index 0b2463b7038..bbd74a1c1b9 100644 --- a/src/uu/unexpand/Cargo.toml +++ b/src/uu/unexpand/Cargo.toml @@ -11,9 +11,6 @@ edition.workspace = true rust-version.workspace = true readme.workspace = true -[lints] -workspace = true - [lib] path = "src/unexpand.rs" doctest = false @@ -30,6 +27,9 @@ divan = { workspace = true } tempfile = { workspace = true } uucore = { workspace = true, features = ["benchmark"] } +[lints] +workspace = true + [[bin]] name = "unexpand" path = "src/main.rs" diff --git a/src/uu/uniq/Cargo.toml b/src/uu/uniq/Cargo.toml index 8c365d507b3..927f494463a 100644 --- a/src/uu/uniq/Cargo.toml +++ b/src/uu/uniq/Cargo.toml @@ -11,9 +11,6 @@ edition.workspace = true rust-version.workspace = true readme.workspace = true -[lints] -workspace = true - [lib] path = "src/uniq.rs" test = false @@ -28,6 +25,9 @@ fluent = { workspace = true } divan = { workspace = true } uucore = { workspace = true, features = ["benchmark", "parser"] } +[lints] +workspace = true + [[bin]] name = "uniq" path = "src/main.rs" diff --git a/src/uu/unlink/Cargo.toml b/src/uu/unlink/Cargo.toml index a22f40a4a21..04aecd4f104 100644 --- a/src/uu/unlink/Cargo.toml +++ b/src/uu/unlink/Cargo.toml @@ -11,9 +11,6 @@ edition.workspace = true rust-version.workspace = true readme.workspace = true -[lints] -workspace = true - [lib] path = "src/unlink.rs" test = false @@ -24,6 +21,9 @@ clap = { workspace = true } uucore = { workspace = true } fluent = { workspace = true } +[lints] +workspace = true + [[bin]] name = "unlink" path = "src/main.rs" diff --git a/src/uu/uptime/Cargo.toml b/src/uu/uptime/Cargo.toml index 145bc430e8a..8ecf10605c3 100644 --- a/src/uu/uptime/Cargo.toml +++ b/src/uu/uptime/Cargo.toml @@ -13,9 +13,6 @@ edition.workspace = true rust-version.workspace = true readme.workspace = true -[lints] -workspace = true - [features] feat_systemd_logind = ["uucore/feat_systemd_logind"] @@ -31,6 +28,9 @@ uucore = { workspace = true, features = ["libc", "utmpx", "uptime"] } fluent = { workspace = true } jiff = { workspace = true } +[lints] +workspace = true + [[bin]] name = "uptime" path = "src/main.rs" diff --git a/src/uu/users/Cargo.toml b/src/uu/users/Cargo.toml index 46871bb5629..471af4654cc 100644 --- a/src/uu/users/Cargo.toml +++ b/src/uu/users/Cargo.toml @@ -13,9 +13,6 @@ edition.workspace = true rust-version.workspace = true readme.workspace = true -[lints] -workspace = true - [features] feat_systemd_logind = ["uucore/feat_systemd_logind"] @@ -32,6 +29,9 @@ fluent = { workspace = true } [target.'cfg(target_os = "openbsd")'.dependencies] utmp-classic = { workspace = true } +[lints] +workspace = true + [[bin]] name = "users" path = "src/main.rs" diff --git a/src/uu/vdir/Cargo.toml b/src/uu/vdir/Cargo.toml index 9a193f50c4f..19e3b24ecd1 100644 --- a/src/uu/vdir/Cargo.toml +++ b/src/uu/vdir/Cargo.toml @@ -11,9 +11,6 @@ edition.workspace = true rust-version.workspace = true readme.workspace = true -[lints] -workspace = true - [lib] path = "src/vdir.rs" test = false @@ -24,6 +21,9 @@ clap = { workspace = true, features = ["env"] } uucore = { workspace = true, features = ["entries", "fs", "quoting-style"] } uu_ls = { workspace = true } +[lints] +workspace = true + [[bin]] name = "vdir" path = "src/main.rs" diff --git a/src/uu/wc/Cargo.toml b/src/uu/wc/Cargo.toml index c6f8069b154..e7224009df5 100644 --- a/src/uu/wc/Cargo.toml +++ b/src/uu/wc/Cargo.toml @@ -11,9 +11,6 @@ edition.workspace = true rust-version.workspace = true readme.workspace = true -[lints] -workspace = true - [lib] path = "src/wc.rs" test = false @@ -41,6 +38,9 @@ divan = { workspace = true } tempfile = { workspace = true } uucore = { workspace = true, features = ["benchmark"] } +[lints] +workspace = true + [[bin]] name = "wc" path = "src/main.rs" diff --git a/src/uu/who/Cargo.toml b/src/uu/who/Cargo.toml index 5376c4dcdf5..c679e3e2c61 100644 --- a/src/uu/who/Cargo.toml +++ b/src/uu/who/Cargo.toml @@ -1,6 +1,5 @@ # spell-checker:ignore logind - [package] name = "uu_who" description = "who ~ (uutils) display information about currently logged-in users" @@ -14,9 +13,6 @@ edition.workspace = true rust-version.workspace = true readme.workspace = true -[lints] -workspace = true - [features] feat_systemd_logind = ["uucore/feat_systemd_logind"] @@ -31,6 +27,9 @@ rustix = { workspace = true, features = ["termios"] } uucore = { workspace = true, features = ["utmpx"] } fluent = { workspace = true } +[lints] +workspace = true + [[bin]] name = "who" path = "src/main.rs" diff --git a/src/uu/whoami/Cargo.toml b/src/uu/whoami/Cargo.toml index 5613c5f6e18..ebaa95e8d74 100644 --- a/src/uu/whoami/Cargo.toml +++ b/src/uu/whoami/Cargo.toml @@ -11,9 +11,6 @@ edition.workspace = true rust-version.workspace = true readme.workspace = true -[lints] -workspace = true - [lib] path = "src/whoami.rs" test = false @@ -31,6 +28,9 @@ windows-sys = { workspace = true, features = [ "Win32_Foundation", ] } +[lints] +workspace = true + [[bin]] name = "whoami" path = "src/main.rs" diff --git a/src/uu/yes/Cargo.toml b/src/uu/yes/Cargo.toml index 374e3d36da9..396fe41df4f 100644 --- a/src/uu/yes/Cargo.toml +++ b/src/uu/yes/Cargo.toml @@ -11,9 +11,6 @@ edition.workspace = true rust-version.workspace = true readme.workspace = true -[lints] -workspace = true - [lib] path = "src/yes.rs" doctest = false @@ -25,6 +22,9 @@ fluent = { workspace = true } rustix = { workspace = true, features = ["stdio", "pipe"] } uucore = { workspace = true, features = ["fs", "pipes"] } +[lints] +workspace = true + [[bin]] name = "yes" path = "src/main.rs" diff --git a/src/uucore/Cargo.toml b/src/uucore/Cargo.toml index 9304681b318..3e96a3301ff 100644 --- a/src/uucore/Cargo.toml +++ b/src/uucore/Cargo.toml @@ -15,9 +15,6 @@ version.workspace = true [package.metadata.docs.rs] all-features = true -[lints] -workspace = true - [lib] path = "src/lib/lib.rs" @@ -225,3 +222,6 @@ tty = [] time = ["jiff"] uptime = ["jiff", "libc", "windows-sys", "utmpx", "utmp-classic"] benchmark = ["divan", "itertools", "tempfile"] + +[lints] +workspace = true diff --git a/tests/uutests/Cargo.toml b/tests/uutests/Cargo.toml index 7cac6ab71d2..b84b277a5e1 100644 --- a/tests/uutests/Cargo.toml +++ b/tests/uutests/Cargo.toml @@ -15,9 +15,6 @@ version.workspace = true [package.metadata.docs.rs] all-features = true -[lints] -workspace = true - [lib] path = "src/lib/lib.rs" @@ -44,3 +41,6 @@ rlimit = { workspace = true } [target.'cfg(all(unix, not(any(target_os = "macos", target_os = "openbsd"))))'.dependencies] xattr = { workspace = true } + +[lints] +workspace = true