X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=fuzz%2FCargo.toml;h=0c279a015c7398fe2ba0d8ba5e5b7ec49f2a154a;hb=10480f009e6e57cd409916ea08ac679b0953e4d5;hp=a6d91781b219ce9f5fcd7553e52bb652b484b950;hpb=7bdbbca3b064be9eadfb716392e099f19878b927;p=rust-lightning diff --git a/fuzz/Cargo.toml b/fuzz/Cargo.toml index a6d91781..0c279a01 100644 --- a/fuzz/Cargo.toml +++ b/fuzz/Cargo.toml @@ -3,7 +3,7 @@ name = "lightning-fuzz" version = "0.0.1" authors = ["Automatically generated"] publish = false -edition = "2018" +edition = "2021" # Because the function is unused it gets dropped before we link lightning, so # we have to duplicate build.rs here. Note that this is only required for # fuzzing mode. @@ -18,10 +18,10 @@ libfuzzer_fuzz = ["libfuzzer-sys"] stdin_fuzz = [] [dependencies] -lightning = { path = "../lightning", features = ["regex", "hashbrown"] } +lightning = { path = "../lightning", features = ["regex", "hashbrown", "_test_utils"] } lightning-rapid-gossip-sync = { path = "../lightning-rapid-gossip-sync" } -bitcoin = { version = "0.29.0", features = ["secp-lowmemory"] } -hex = "0.3" +bitcoin = { version = "0.30.2", features = ["secp-lowmemory"] } +hex = { package = "hex-conservative", version = "0.1.1", default-features = false } hashbrown = "0.8" afl = { version = "0.12", optional = true } @@ -38,6 +38,8 @@ members = ["."] [profile.release] lto = true codegen-units = 1 +debug-assertions = true +overflow-checks = true # When testing a large fuzz corpus, -O1 offers a nice speedup [profile.dev]