Skip to content

Commit

Permalink
Merge pull request #3555 from tnull/2025-01-add-fuzz-cfg-lints
Browse files Browse the repository at this point in the history
Add `check-cfg` lint to `fuzz` to quiet warnings
  • Loading branch information
tnull authored Jan 23, 2025
2 parents 3d2b4de + 8cee3bb commit bd85a29
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions fuzz/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,13 @@ opt-level = 1
name = "lightning_fuzz"
path = "src/lib.rs"
crate-type = ["rlib", "dylib", "staticlib"]

[lints.rust.unexpected_cfgs]
level = "forbid"
# When adding a new cfg attribute, ensure that it is added to this list.
check-cfg = [
"cfg(fuzzing)",
"cfg(secp256k1_fuzz)",
"cfg(hashes_fuzz)",
"cfg(taproot)",
]

0 comments on commit bd85a29

Please sign in to comment.