X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=fuzz%2FCargo.toml;h=c4ed4c70346d5059a7121e2840f45720ae8f8751;hb=90ce97198cf37c589c11eb2091d09c7805b2c026;hp=ecf3809c59b3ec8cc88ca349b3ad1eff3b9cb7b0;hpb=7ff7561f2d5b70bd58e441161b863c03d08542b2;p=rust-lightning diff --git a/fuzz/Cargo.toml b/fuzz/Cargo.toml index ecf3809c..c4ed4c70 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 @@ -19,9 +18,9 @@ honggfuzz_fuzz = ["honggfuzz"] afl = { version = "0.4", optional = true } lightning = { path = "..", features = ["fuzztarget"] } bitcoin = { version = "0.15", features = ["fuzztarget"] } +bitcoin_hashes = { git = "https://github.com/TheBlueMatt/bitcoin_hashes", branch = "rust-lightning-dep", features=["fuzztarget"] } hex = "0.3" honggfuzz = { version = "0.5", optional = true } -rust-crypto = "0.2" secp256k1 = { version = "0.11", features=["fuzztarget"] } [build-dependencies] @@ -31,6 +30,10 @@ cc = "1.0" [workspace] members = ["."] +[profile.release] +lto = true +codegen-units = 1 + [[bin]] name = "peer_crypt_target" path = "fuzz_targets/peer_crypt_target.rs"