]> git.bitcoin.ninja Git - rust-lightning/blob - fuzz/Cargo.toml
Log shutdown including which side of the channel initiated shutdown
[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 # fuzztarget 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 = ["fuzztarget"] }
22 bitcoin = { version = "0.27", features = ["fuzztarget", "secp-lowmemory"] }
23 hex = "0.3"
24 honggfuzz = { version = "0.5", optional = true }
25 libfuzzer-sys = { git = "https://github.com/rust-fuzz/libfuzzer-sys.git", optional = true }
26
27 [build-dependencies]
28 cc = "1.0"
29
30 # Prevent this from interfering with workspaces
31 [workspace]
32 members = ["."]
33
34 [profile.release]
35 lto = true
36 codegen-units = 1
37
38 # When testing a large fuzz corpus, -O1 offers a nice speedup
39 [profile.dev]
40 opt-level = 1
41
42 [lib]
43 name = "lightning_fuzz"
44 path = "src/lib.rs"
45 crate-type = ["rlib", "dylib", "staticlib"]