2 name = "lightning-fuzz"
4 authors = ["Automatically generated"]
6 # Because the function is unused it gets dropped before we link lightning, so
7 # we have to duplicate build.rs here. Note that this is only required for
15 honggfuzz_fuzz = ["honggfuzz"]
16 libfuzzer_fuzz = ["libfuzzer-sys"]
20 afl = { version = "0.4", optional = true }
21 lightning = { path = "../lightning", features = ["fuzztarget"] }
22 bitcoin = { version = "0.26", features = ["fuzztarget", "secp-lowmemory"] }
24 honggfuzz = { version = "0.5", optional = true }
25 libfuzzer-sys = { git = "https://github.com/rust-fuzz/libfuzzer-sys.git", optional = true }
28 # Rust-Secp256k1 PR 282. This patch should be dropped once that is merged.
29 secp256k1 = { git = 'https://github.com/TheBlueMatt/rust-secp256k1', rev = '32767e0e21e8861701ff7d5957613169d67ff1f8' }
30 # bitcoin_hashes PR 111 (without the top commit). This patch should be dropped once that is merged.
31 bitcoin_hashes = { git = 'https://github.com/TheBlueMatt/bitcoin_hashes', rev = 'c90d26339a3e34fd2f942aa80298f410cc41b743' }
36 # Prevent this from interfering with workspaces
44 # When testing a large fuzz corpus, -O1 offers a nice speedup
49 name = "lightning_fuzz"
51 crate-type = ["rlib", "dylib", "staticlib"]