Skip to content

Commit bd85a29

Browse files
authored
Merge pull request #3555 from tnull/2025-01-add-fuzz-cfg-lints
Add `check-cfg` lint to `fuzz` to quiet warnings
2 parents 3d2b4de + 8cee3bb commit bd85a29

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

fuzz/Cargo.toml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,13 @@ opt-level = 1
4949
name = "lightning_fuzz"
5050
path = "src/lib.rs"
5151
crate-type = ["rlib", "dylib", "staticlib"]
52+
53+
[lints.rust.unexpected_cfgs]
54+
level = "forbid"
55+
# When adding a new cfg attribute, ensure that it is added to this list.
56+
check-cfg = [
57+
"cfg(fuzzing)",
58+
"cfg(secp256k1_fuzz)",
59+
"cfg(hashes_fuzz)",
60+
"cfg(taproot)",
61+
]

0 commit comments

Comments
 (0)