X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=fuzz%2FCargo.toml;h=53ff1cbd7a18c64b67063cdccff68ae5b23b557f;hb=d7ac68701f6d169438b0337919fde7c715b2e94c;hp=01311f206776d29725f7e4433612262d4c2bd639;hpb=b2f31c5256513f0d9744af1c61aae04acbd7c701;p=rust-lightning diff --git a/fuzz/Cargo.toml b/fuzz/Cargo.toml index 01311f20..53ff1cbd 100644 --- a/fuzz/Cargo.toml +++ b/fuzz/Cargo.toml @@ -6,7 +6,6 @@ publish = false # 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 # fuzztarget mode. -build = "../build.rs" [package.metadata] cargo-fuzz = true @@ -14,15 +13,17 @@ cargo-fuzz = true [features] afl_fuzz = ["afl"] honggfuzz_fuzz = ["honggfuzz"] +libfuzzer_fuzz = ["libfuzzer-sys"] [dependencies] afl = { version = "0.4", optional = true } lightning = { path = "..", features = ["fuzztarget"] } -bitcoin = { version = "0.14", features = ["fuzztarget"] } +bitcoin = { version = "0.16", features = ["fuzztarget"] } +bitcoin_hashes = { version = "0.2", features=["fuzztarget"] } hex = "0.3" honggfuzz = { version = "0.5", optional = true } -rust-crypto = "0.2" -secp256k1 = { version = "0.11", features=["fuzztarget"] } +secp256k1 = { version = "0.12", features=["fuzztarget"] } +libfuzzer-sys = { git = "https://github.com/rust-fuzz/libfuzzer-sys.git", optional = true } [build-dependencies] cc = "1.0" @@ -31,14 +32,14 @@ cc = "1.0" [workspace] members = ["."] +[profile.release] +lto = true +codegen-units = 1 + [[bin]] name = "peer_crypt_target" path = "fuzz_targets/peer_crypt_target.rs" -[[bin]] -name = "channel_target" -path = "fuzz_targets/channel_target.rs" - [[bin]] name = "full_stack_target" path = "fuzz_targets/full_stack_target.rs"