Merge pull request #3057 from G8XSU/2024-05-08-claimable-persist-3049
[rust-lightning] / fuzz / src / bin / target_template.txt
index 7db3bc80b9b139e47fbb44fa50413cf733b0c340..7603ccb271983f64d6d0e5367866f8869b75920d 100644 (file)
 
 #![cfg_attr(feature = "libfuzzer_fuzz", no_main)]
 
+#[cfg(not(fuzzing))]
+compile_error!("Fuzz targets need cfg=fuzzing");
+
+#[cfg(not(hashes_fuzz))]
+compile_error!("Fuzz targets need cfg=hashes_fuzz");
+
+#[cfg(not(secp256k1_fuzz))]
+compile_error!("Fuzz targets need cfg=secp256k1_fuzz");
+
 extern crate lightning_fuzz;
 use lightning_fuzz::TARGET_MOD::*;