Update bitcoin crate to 0.29.0
[rust-lightning] / fuzz / Cargo.toml
1 [package]
2 name = "lightning-fuzz"
3 version = "0.0.1"
4 authors = ["Automatically generated"]
5 publish = false
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
8 # fuzzing mode.
9
10 [package.metadata]
11 cargo-fuzz = true
12
13 [features]
14 afl_fuzz = ["afl"]
15 honggfuzz_fuzz = ["honggfuzz"]
16 libfuzzer_fuzz = ["libfuzzer-sys"]
17 stdin_fuzz = []
18
19 [dependencies]
20 afl = { version = "0.4", optional = true }
21 lightning = { path = "../lightning", features = ["regex"] }
22 lightning-rapid-gossip-sync = { path = "../lightning-rapid-gossip-sync" }
23 bitcoin = { version = "0.29.0", features = ["secp-lowmemory"] }
24 hex = "0.3"
25 honggfuzz = { version = "0.5", optional = true }
26 libfuzzer-sys = { version = "0.4", optional = true }
27
28 [build-dependencies]
29 cc = "1.0"
30
31 # Prevent this from interfering with workspaces
32 [workspace]
33 members = ["."]
34
35 [profile.release]
36 lto = true
37 codegen-units = 1
38
39 # When testing a large fuzz corpus, -O1 offers a nice speedup
40 [profile.dev]
41 opt-level = 1
42
43 [lib]
44 name = "lightning_fuzz"
45 path = "src/lib.rs"
46 crate-type = ["rlib", "dylib", "staticlib"]