2018-03-19 17:45:58 -04:00
|
|
|
[package]
|
|
|
|
name = "lightning-fuzz"
|
|
|
|
version = "0.0.1"
|
|
|
|
authors = ["Automatically generated"]
|
|
|
|
publish = false
|
2018-04-16 16:55:03 -04: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
|
|
|
|
# fuzztarget mode.
|
2018-03-19 17:45:58 -04:00
|
|
|
|
|
|
|
[package.metadata]
|
|
|
|
cargo-fuzz = true
|
|
|
|
|
|
|
|
[features]
|
|
|
|
afl_fuzz = ["afl"]
|
|
|
|
honggfuzz_fuzz = ["honggfuzz"]
|
2018-12-03 13:56:44 -05:00
|
|
|
libfuzzer_fuzz = ["libfuzzer-sys"]
|
2019-12-11 13:18:43 -05:00
|
|
|
stdin_fuzz = []
|
2018-03-19 17:45:58 -04:00
|
|
|
|
|
|
|
[dependencies]
|
2018-08-16 14:20:34 -04:00
|
|
|
afl = { version = "0.4", optional = true }
|
2019-11-22 15:40:58 -05:00
|
|
|
lightning = { path = "../lightning", features = ["fuzztarget"] }
|
2021-07-22 14:31:37 +00:00
|
|
|
bitcoin = { version = "0.27", features = ["fuzztarget", "secp-lowmemory"] }
|
2018-07-30 17:01:57 -07:00
|
|
|
hex = "0.3"
|
2018-03-19 17:45:58 -04:00
|
|
|
honggfuzz = { version = "0.5", optional = true }
|
2018-12-03 13:56:44 -05:00
|
|
|
libfuzzer-sys = { git = "https://github.com/rust-fuzz/libfuzzer-sys.git", optional = true }
|
2018-03-19 17:45:58 -04:00
|
|
|
|
2018-04-16 16:55:03 -04:00
|
|
|
[build-dependencies]
|
2018-07-19 22:45:34 -04:00
|
|
|
cc = "1.0"
|
2018-04-16 16:55:03 -04:00
|
|
|
|
2018-03-19 17:45:58 -04:00
|
|
|
# Prevent this from interfering with workspaces
|
|
|
|
[workspace]
|
|
|
|
members = ["."]
|
|
|
|
|
2018-11-18 15:34:13 -05:00
|
|
|
[profile.release]
|
|
|
|
lto = true
|
|
|
|
codegen-units = 1
|
|
|
|
|
2020-02-20 20:11:40 -05:00
|
|
|
# When testing a large fuzz corpus, -O1 offers a nice speedup
|
|
|
|
[profile.dev]
|
|
|
|
opt-level = 1
|
|
|
|
|
2019-12-11 13:18:43 -05:00
|
|
|
[lib]
|
|
|
|
name = "lightning_fuzz"
|
|
|
|
path = "src/lib.rs"
|
|
|
|
crate-type = ["rlib", "dylib", "staticlib"]
|