Merge pull request #2947 from tnull/2024-03-log-features-if-mismatch
[rust-lightning] / fuzz / src / bin / chanmon_deser_target.rs
index 8b57874cf6c6e37adda6892a30ad081d47492d54..40bbf260df276d1c2f6fa885bfffee59b4e15337 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::chanmon_deser::*;