1cb7a8d6d925610e927b3c261ffbaa070dfd6131
[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.21", features = ["fuzztarget"] }
23 bitcoin_hashes = { version = "0.7", features = ["fuzztarget"] }
24 hex = "0.3"
25 honggfuzz = { version = "0.5", optional = true }
26 secp256k1 = { version = "0.15", features=["fuzztarget"] }
27 libfuzzer-sys = { git = "https://github.com/rust-fuzz/libfuzzer-sys.git", optional = true }
28
29 [build-dependencies]
30 cc = "1.0"
31
32 # Prevent this from interfering with workspaces
33 [workspace]
34 members = ["."]
35
36 [profile.release]
37 lto = true
38 codegen-units = 1
39
40 [lib]
41 name = "lightning_fuzz"
42 path = "src/lib.rs"
43 crate-type = ["rlib", "dylib", "staticlib"]