crosvm/common/cros-fuzz/Cargo.toml
Zihan Chen 646b6ea8fa crosvm-fuzz: Migrate crosvm-fuzz to cargo fuzz
Fuzzer targets can be ran with
cargo +nightly fuzz run --fuzz-dir crosvm-fuzz --features
upstream-fuzz <target>

This should enable us to move fuzzing to anywhere including
ClusterFuzz while maintain compatibility with cros infra.

TEST=`cargo fuzz` won't crash in first 30s,
`USE="asan fuzzer" emerge-hatch crosvm` builds,
`/build/hatch/usr/libexec/fuzzers/crosvm_qcow_fuzzer` won't
crash in first 30s
FIXED=b:245007212
BUG=b:244631591

Change-Id: I4b262ee1a6a90247dea96347c55a3849af793bec
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/3905095
Auto-Submit: Zihan Chen <zihanchen@google.com>
Commit-Queue: Dennis Kempin <denniskempin@google.com>
Reviewed-by: Dennis Kempin <denniskempin@google.com>
2022-10-03 16:12:15 +00:00

15 lines
319 B
TOML

[package]
name = "cros_fuzz"
version = "0.1.0"
authors = ["The Chromium OS Authors"]
edition = "2021"
include = ["Cargo.toml", "src/*.rs"]
[dependencies]
rand_core = {version = "0.6", features = ["std"]}
libfuzzer-sys = { version = "*", optional = true }
[features]
upstream-fuzz = ["dep:libfuzzer-sys"]
[workspace]