Files
darkfi/fuzz/Cargo.toml
y a0e78b576a fuzz: Enable and document code coverage for zkas
Libfuzzer has more capabilities to provide a helpful code coverage
report for fuzz testing. (Or at least is has better documentation.)
This commit copies the zkas-compile harness from honggfuzz into libfuzzer.
It also includes instructions for generating coverage reports.
2023-09-19 14:41:25 -04:00

60 lines
998 B
TOML

[package]
name = "darkfi-fuzz"
version = "0.0.0"
publish = false
edition = "2021"
[package.metadata]
cargo-fuzz = true
[dependencies]
libfuzzer-sys = "0.4.7"
[dependencies.darkfi]
path = ".."
features = ["zkas"]
[dependencies.darkfi-serial]
path = "../src/serial"
features = ["derive", "semver", "collections", "crypto", "hash"]
[patch.crates-io]
blake2b_simd = {git="https://github.com/parazyd/blake2_simd", branch="impl-common"}
# Prevent this from interfering with workspaces
[workspace]
members = ["."]
[profile.release]
debug = 1
[[bin]]
name = "serial"
path = "fuzz_targets/serial.rs"
test = false
doc = false
[[bin]]
name = "zkas-lexer"
path = "fuzz_targets/zkas_lexer.rs"
test = false
doc = false
[[bin]]
name = "zkas-decoder"
path = "fuzz_targets/zkas_decoder.rs"
test = false
doc = false
[[bin]]
name = "decode-string"
path = "fuzz_targets/decode_string.rs"
test = false
doc = false
[[bin]]
name = "zkas-compile"
path = "fuzz_targets/zkas_compile.rs"
test = false
doc = false