diff --git a/Cargo.toml b/Cargo.toml index 6d34d5c1efe..6a5796a46c6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -619,9 +619,12 @@ workspace = true # This is the linting configuration for all crates. # In order to use these, all crates have `[lints] workspace = true` section. [workspace.lints.rust] -# Allow "fuzzing" as a "cfg" condition name +# Allow "fuzzing" as a "cfg" condition name and "cygwin" as a value for "target_os" # https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html -unexpected_cfgs = { level = "warn", check-cfg = ['cfg(fuzzing)'] } +unexpected_cfgs = { level = "warn", check-cfg = [ + 'cfg(fuzzing)', + 'cfg(target_os, values("cygwin"))', +] } #unused_qualifications = "warn" // TODO: fix warnings in uucore, then re-enable this lint [workspace.lints.clippy] diff --git a/src/uu/stdbuf/src/libstdbuf/Cargo.toml b/src/uu/stdbuf/src/libstdbuf/Cargo.toml index 6460c441eec..8a92fcbb56a 100644 --- a/src/uu/stdbuf/src/libstdbuf/Cargo.toml +++ b/src/uu/stdbuf/src/libstdbuf/Cargo.toml @@ -10,6 +10,9 @@ keywords.workspace = true categories.workspace = true edition.workspace = true +[lints] +workspace = true + [lib] name = "stdbuf" path = "src/libstdbuf.rs"