Skip to content

Commit 8cee3bb

Browse files
committed
Add check-cfg lint to fuzz to quiet warnings
Previously, the fuzzer would complain about unknown `cfg` flags. Here, we add them to the list of allowed flags to quiet the many warnings.
1 parent 86308e1 commit 8cee3bb

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

fuzz/Cargo.toml

+10
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)