projects
/
rust-lightning
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #2725 from shaavan/issue2096
[rust-lightning]
/
fuzz
/
src
/
bin
/
router_target.rs
diff --git
a/fuzz/src/bin/router_target.rs
b/fuzz/src/bin/router_target.rs
index 4df8b2a0065e430fa3994beaaef68c825bba78c1..2082f115ae0572f39b9662f6cf64b762d4e9078d 100644
(file)
--- a/
fuzz/src/bin/router_target.rs
+++ b/
fuzz/src/bin/router_target.rs
@@
-12,6
+12,9
@@
#![cfg_attr(feature = "libfuzzer_fuzz", no_main)]
#![cfg_attr(feature = "libfuzzer_fuzz", no_main)]
+#[cfg(not(fuzzing))]
+compile_error!("Fuzz targets need cfg=fuzzing");
+
extern crate lightning_fuzz;
use lightning_fuzz::router::*;
extern crate lightning_fuzz;
use lightning_fuzz::router::*;