Expose send_payment_for_bolt12_invoice
[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 = "2021"
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", "_test_utils"] }
22 lightning-invoice = { path = "../lightning-invoice" }
23 lightning-rapid-gossip-sync = { path = "../lightning-rapid-gossip-sync" }
24 bech32 = "0.9.1"
25 bitcoin = { version = "0.31.2", features = ["secp-lowmemory"] }
26 hex = { package = "hex-conservative", version = "0.1.1", default-features = false }
27
28 afl = { version = "0.12", optional = true }
29 honggfuzz = { version = "0.5", optional = true, default-features = false }
30 libfuzzer-sys = { version = "0.4", optional = true }
31
32 [build-dependencies]
33 cc = "1.0"
34
35 # Prevent this from interfering with workspaces
36 [workspace]
37 members = ["."]
38
39 [profile.release]
40 lto = true
41 codegen-units = 1
42 debug-assertions = true
43 overflow-checks = true
44
45 # When testing a large fuzz corpus, -O1 offers a nice speedup
46 [profile.dev]
47 opt-level = 1
48
49 [lib]
50 name = "lightning_fuzz"
51 path = "src/lib.rs"
52 crate-type = ["rlib", "dylib", "staticlib"]