c613c877f78096ebddfe2627308442003c92aee5
[dnssec-prover] / fuzz / Cargo.toml
1 [package]
2 name = "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 dnssec-prover = { path = "../", features = ["validation", "std", "build_server"] }
22
23 afl = { version = "0.12", optional = true }
24 honggfuzz = { version = "0.5", optional = true, default-features = false }
25 libfuzzer-sys = { version = "0.4", 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 debug-assertions = true
38 overflow-checks = true
39
40 # When testing a large fuzz corpus, -O1 offers a nice speedup
41 [profile.dev]
42 opt-level = 1
43
44 [[bin]]
45 name = "parse_response"
46 path = "src/parse_response.rs"