crosvm/fuzz/Cargo.toml
Daniel Verkamp 17b696fd0a fuzz: expect cfg(fuzzing)
Otherwise clippy in Rust 1.80 and newer warns about unexpected_cfgs.

BUG=b:365852007

Change-Id: Id0496dec2491d1e850954f801c2f700b22be5179
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5902376
Commit-Queue: Daniel Verkamp <dverkamp@chromium.org>
Reviewed-by: Dennis Kempin <denniskempin@google.com>
2024-11-05 00:10:58 +00:00

76 lines
1.4 KiB
TOML

[package]
name = "crosvm-fuzz"
version = "0.0.1"
publish = false
edition = "2021"
[package.metadata]
cargo-fuzz = true
[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(fuzzing)'] }
[dependencies]
devices = { path = "../devices" }
disk = { path = "../disk" }
fuse = { path = "../fuse" }
hypervisor = { path = "../hypervisor" }
kernel_loader = { path = "../kernel_loader" }
libc = "0.2"
rand = "0.8"
base = { path = "../base" }
tempfile = "3"
usb_util = { path = "../usb_util" }
vm_memory = { path = "../vm_memory" }
p9 = "0.2"
rand_core = {version = "0.6", features = ["std"]}
cfg-if = "1.0"
[target.'cfg(fuzzing)'.dependencies]
libfuzzer-sys = "=0.4.4"
[features]
default = ["disk/qcow"]
[[bin]]
name = "block_fuzzer"
path = "fuzz_targets/block_fuzzer.rs"
test = false
doc = false
[[bin]]
name = "fs_server_fuzzer"
path = "fuzz_targets/fs_server_fuzzer.rs"
test = false
doc = false
[[bin]]
name = "p9_tframe_fuzzer"
path = "fuzz_targets/p9_tframe_fuzzer.rs"
test = false
doc = false
[[bin]]
name = "qcow_fuzzer"
path = "fuzz_targets/qcow_fuzzer.rs"
test = false
doc = false
[[bin]]
name = "usb_descriptor_fuzzer"
path = "fuzz_targets/usb_descriptor_fuzzer.rs"
test = false
doc = false
[[bin]]
name = "virtqueue_fuzzer"
path = "fuzz_targets/virtqueue_fuzzer.rs"
test = false
doc = false
[[bin]]
name = "zimage_fuzzer"
path = "fuzz_targets/zimage_fuzzer.rs"
test = false
doc = false