diff --git a/fuzz/Cargo.toml b/fuzz/Cargo.toml index a0f748d2349..37c0cb20244 100644 --- a/fuzz/Cargo.toml +++ b/fuzz/Cargo.toml @@ -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)", +]