2018-03-19 22:45:58 +01:00
|
|
|
[package]
|
|
|
|
name = "lightning-fuzz"
|
|
|
|
version = "0.0.1"
|
|
|
|
authors = ["Automatically generated"]
|
|
|
|
publish = false
|
2023-10-24 15:16:38 +02:00
|
|
|
edition = "2021"
|
2018-04-16 22:55:03 +02:00
|
|
|
# Because the function is unused it gets dropped before we link lightning, so
|
|
|
|
# we have to duplicate build.rs here. Note that this is only required for
|
2022-02-17 20:29:59 +01:00
|
|
|
# fuzzing mode.
|
2018-03-19 22:45:58 +01:00
|
|
|
|
|
|
|
[package.metadata]
|
|
|
|
cargo-fuzz = true
|
|
|
|
|
|
|
|
[features]
|
|
|
|
afl_fuzz = ["afl"]
|
|
|
|
honggfuzz_fuzz = ["honggfuzz"]
|
2018-12-03 19:56:44 +01:00
|
|
|
libfuzzer_fuzz = ["libfuzzer-sys"]
|
2019-12-11 19:18:43 +01:00
|
|
|
stdin_fuzz = []
|
2018-03-19 22:45:58 +01:00
|
|
|
|
|
|
|
[dependencies]
|
2024-09-13 13:14:40 +02:00
|
|
|
lightning = { path = "../lightning", features = ["regex", "_test_utils"] }
|
2024-04-30 15:58:21 +02:00
|
|
|
lightning-invoice = { path = "../lightning-invoice" }
|
2021-11-03 18:50:08 +01:00
|
|
|
lightning-rapid-gossip-sync = { path = "../lightning-rapid-gossip-sync" }
|
2024-10-02 21:21:07 +02:00
|
|
|
bech32 = "0.11.0"
|
2024-08-16 17:02:50 +02:00
|
|
|
bitcoin = { version = "0.32.2", features = ["secp-lowmemory"] }
|
2023-01-06 20:53:47 +01:00
|
|
|
|
|
|
|
afl = { version = "0.12", optional = true }
|
2022-08-30 06:03:47 +02:00
|
|
|
honggfuzz = { version = "0.5", optional = true, default-features = false }
|
2022-08-07 21:02:33 +02:00
|
|
|
libfuzzer-sys = { version = "0.4", optional = true }
|
2018-03-19 22:45:58 +01:00
|
|
|
|
2018-04-16 22:55:03 +02:00
|
|
|
[build-dependencies]
|
2018-07-20 04:45:34 +02:00
|
|
|
cc = "1.0"
|
2018-04-16 22:55:03 +02:00
|
|
|
|
2018-03-19 22:45:58 +01:00
|
|
|
# Prevent this from interfering with workspaces
|
|
|
|
[workspace]
|
|
|
|
members = ["."]
|
|
|
|
|
2018-11-18 21:34:13 +01:00
|
|
|
[profile.release]
|
|
|
|
lto = true
|
|
|
|
codegen-units = 1
|
2023-01-06 21:11:27 +01:00
|
|
|
debug-assertions = true
|
|
|
|
overflow-checks = true
|
2018-11-18 21:34:13 +01:00
|
|
|
|
2020-02-21 02:11:40 +01:00
|
|
|
# When testing a large fuzz corpus, -O1 offers a nice speedup
|
|
|
|
[profile.dev]
|
|
|
|
opt-level = 1
|
|
|
|
|
2019-12-11 19:18:43 +01:00
|
|
|
[lib]
|
|
|
|
name = "lightning_fuzz"
|
|
|
|
path = "src/lib.rs"
|
|
|
|
crate-type = ["rlib", "dylib", "staticlib"]
|