Merge pull request #3555 from tnull/2025-01-add-fuzz-cfg-lints

Add `check-cfg` lint to `fuzz` to quiet warnings
This commit is contained in:
Elias Rohrer 2025-01-23 10:50:59 +01:00 committed by GitHub
commit bd85a29fe3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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)",
]