Skip to content

Commit

Permalink
Add check-cfg lint to fuzz to quiet warnings
Browse files Browse the repository at this point in the history
Previously, the fuzzer would complain about unknown `cfg` flags. Here,
we add them to the list of allowed flags to quiet the many warnings.
tnull committed Jan 22, 2025
1 parent 86308e1 commit 8cee3bb
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
@@ -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 8cee3bb

Please sign in to comment.