a6d91781b219ce9f5fcd7553e52bb652b484b950
[rust-lightning] / fuzz / Cargo.toml
1 [package]
2 name = "lightning-fuzz"
3 version = "0.0.1"
4 authors = ["Automatically generated"]
5 publish = false
6 edition = "2018"
7 # Because the function is unused it gets dropped before we link lightning, so
8 # we have to duplicate build.rs here. Note that this is only required for
9 # fuzzing mode.
10
11 [package.metadata]
12 cargo-fuzz = true
13
14 [features]
15 afl_fuzz = ["afl"]
16 honggfuzz_fuzz = ["honggfuzz"]
17 libfuzzer_fuzz = ["libfuzzer-sys"]
18 stdin_fuzz = []
19
20 [dependencies]
21 lightning = { path = "../lightning", features = ["regex", "hashbrown"] }
22 lightning-rapid-gossip-sync = { path = "../lightning-rapid-gossip-sync" }
23 bitcoin = { version = "0.29.0", features = ["secp-lowmemory"] }
24 hex = "0.3"
25 hashbrown = "0.8"
26
27 afl = { version = "0.12", optional = true }
28 honggfuzz = { version = "0.5", optional = true, default-features = false }
29 libfuzzer-sys = { version = "0.4", optional = true }
30
31 [build-dependencies]
32 cc = "1.0"
33
34 # Prevent this from interfering with workspaces
35 [workspace]
36 members = ["."]
37
38 [profile.release]
39 lto = true
40 codegen-units = 1
41
42 # When testing a large fuzz corpus, -O1 offers a nice speedup
43 [profile.dev]
44 opt-level = 1
45
46 [lib]
47 name = "lightning_fuzz"
48 path = "src/lib.rs"
49 crate-type = ["rlib", "dylib", "staticlib"]