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

[package]
name = "user_driver"
edition.workspace = true
rust-version.workspace = true

[features]
default = ["vfio"]
vfio = ["vfio_sys", "trycopy"]
mmio_simulate_fallback = []

[dependencies]
inspect.workspace = true
inspect_counters.workspace = true
mesh.workspace = true
pal_async.workspace = true
pci_core.workspace = true
safeatomic.workspace = true
uevent.workspace = true
event-listener.workspace = true
guestmem.workspace = true
trycopy = { workspace = true, optional = true }
vmcore.workspace = true

anyhow.workspace = true
parking_lot.workspace = true
tracing.workspace = true
vfio-bindings.workspace = true
zerocopy.workspace = true
[target.'cfg(target_os = "linux")'.dependencies]
fs-err.workspace = true
futures.workspace = true
futures-concurrency.workspace = true
libc.workspace = true
pal_event.workspace = true
vfio_sys = { workspace = true, optional = true }

[lints]
workspace = true
