Add explicit compile errors when cfg=fuzzing is mis-set
[rust-lightning] / lightning / src / lib.rs
index 132189858fd4855cbded65af580a2a3611d7d9c5..2798f78adf23aa0a52cde63fa86fb30270600b34 100644 (file)
@@ -36,6 +36,9 @@
 #[cfg(not(any(feature = "std", feature = "no-std")))]
 compile_error!("at least one of the `std` or `no-std` features must be enabled");
 
+#[cfg(all(fuzzing, test))]
+compile_error!("Tests will always fail with cfg=fuzzing");
+
 #[macro_use]
 extern crate alloc;
 extern crate bitcoin;