# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

[package]
name = "fuzz_guestmem"
publish = false
edition.workspace = true
rust-version.workspace = true

[dependencies]
guestmem.workspace = true
sparse_mmap.workspace = true
xtask_fuzz.workspace = true

arbitrary = { workspace = true, features = ["derive"] }
smallvec.workspace = true

[target.'cfg(all(target_os = "linux", target_env = "gnu"))'.dependencies]
libfuzzer-sys.workspace = true

[package.metadata.xtask.unused-deps]
# required for the xtask_fuzz macro, but unused_deps doesn't know that
ignored = ["libfuzzer-sys"]

[package.metadata]
cargo-fuzz = true

[package.metadata.xtask.fuzz.onefuzz-allowlist]
fuzz_guestmem = ["../src/**/*"]

[[bin]]
name = "fuzz_guestmem"
path = "fuzz_guestmem.rs"
test = false
doc = false
doctest = false

[lints]
workspace = true
