Skip to content

Commit 72750c6

Browse files
committed
Add [workspace.lints.rust.unexpected_cfgs] to Cargo.toml
1 parent 220c74f commit 72750c6

File tree

4 files changed

+14
-5
lines changed

4 files changed

+14
-5
lines changed

Cargo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[workspace]
2-
members = [
3-
"cast_checks",
4-
"convert",
5-
"macro",
6-
]
2+
members = ["cast_checks", "convert", "macro"]
73
resolver = "2"
4+
5+
[workspace.lints.rust.unexpected_cfgs]
6+
level = "deny"
7+
check-cfg = ["cfg(dylint_lib, values(any()))", "cfg(procmacro2_semver_exempt)"]

cast_checks/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,6 @@ tempfile = "3.8"
2222
default = []
2323
release = ["cast_checks_macro/release"]
2424
__no_should_panic = []
25+
26+
[lints]
27+
workspace = true

convert/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,6 @@ description = "cast_checks_convert"
66
edition = "2021"
77
license = "MIT OR Apache-2.0"
88
repository = "https://github.com/trailofbits/cast_checks"
9+
10+
[lints]
11+
workspace = true

macro/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,6 @@ syn = { version = "2.0", features = ["full", "visit", "visit-mut"] }
1919
[features]
2020
default = []
2121
release = []
22+
23+
[lints]
24+
workspace = true

0 commit comments

Comments
 (0)