• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1[package]
2name = "devices"
3version = "0.1.0"
4authors = ["The ChromiumOS Authors"]
5edition = "2021"
6
7[features]
8android_display = ["gpu_display/android_display"]
9android_display_stub = ["gpu_display/android_display_stub"]
10arc_quota = ["dbus", "protobuf", "system_api", "fs_permission_translation"]
11fs_runtime_ugid_map = ["fs_permission_translation"]
12# Allow intercepting incoming virtio-fs requests to modify its permission, UID or GID.
13#
14# This feature is not supposed to be specified directly. Instead, this will be automatically
15# enabled when either `arc_quota` or `fs_runtime_ugid_map` is enabled.
16fs_permission_translation = []
17audio = []
18audio_aaudio = []
19audio_cras = ["libcras"]
20balloon = []
21gpu = ["gpu_display"]
22gunyah = []
23libvda-stub = ["libvda/libvda-stub"]
24net = []
25pvclock = []
26geniezone = []
27usb = []
28vaapi = ["cros-codecs/vaapi", "crc32fast"]
29media = ["virtio-media"]
30video-decoder = []
31video-encoder = []
32minigbm = ["rutabaga_gfx/minigbm"]
33x = ["gpu_display/x", "rutabaga_gfx/x"]
34virgl_renderer = ["gpu", "rutabaga_gfx/virgl_renderer"]
35vtpm = ["system_api", "protobuf", "dbus"]
36gfxstream = ["gpu", "gpu_display/gfxstream", "rutabaga_gfx/gfxstream"]
37registered_events = []
38slirp = ["net_util/slirp"]
39slirp-ring-capture = []
40stats = []
41seccomp_trace = []
42swap = ["swap/enable"]
43whpx = []
44pci-hotplug = []
45noncoherent-dma = []
46
47[dependencies]
48argh = "0.1.7"
49async-task = "4"
50acpi_tables = {path = "../acpi_tables" }
51anyhow = "1"
52async-trait = "0.1.36"
53audio_streams = "*"
54audio_util = { path = "../audio_util" }
55balloon_control = { path = "../common/balloon_control" }
56base = { path = "../base" }
57bit_field = { path = "../bit_field" }
58cfg-if = "1.0.0"
59chrono = { version = "0.4.34", features = [ "serde", "now" ], default-features = false }
60crc32fast = { version = "1.2.1", optional = true }
61cros_async = { path = "../cros_async" }
62cros-codecs = { version = "0.0.4", optional = true }
63crosvm_cli = { path = "../crosvm_cli" }
64data_model = { path = "../common/data_model" }
65dbus = { version = "0.9.7", features = ["stdfd"], optional = true }
66disk = { path = "../disk" }
67downcast-rs = "1.2.0"
68enumn = "0.1.0"
69ffmpeg = { path = "../media/ffmpeg", optional = true }
70gpu_display = { path = "../gpu_display", optional = true }
71rutabaga_gfx = { path = "../rutabaga_gfx" }
72hypervisor = { path = "../hypervisor" }
73kvm_sys = { path = "../kvm_sys" }
74libc = "0.2"
75libvda = { path = "../media/libvda", optional = true }
76linux_input_sys = { path = "../linux_input_sys" }
77metrics = { path = "../metrics" }
78metrics_events = { path = "../metrics_events" }
79net_util = { path = "../net_util" }
80num-traits = "0.2"
81once_cell = "1.7.2"
82power_monitor = { path = "../power_monitor" }
83protobuf = { version = "3.2", optional = true }
84protos = { path = "../protos", optional = true }
85rand = "0.8"
86remain = "0.2"
87resources = { path = "../resources" }
88serde = { version = "1", features = [ "derive", "rc" ] }
89serde_json = "1"
90serde_keyvalue = { path = "../serde_keyvalue", features = ["argh_derive"] }
91smallvec = "1.6.1"
92snapshot = { workspace = true }
93static_assertions = "1.1"
94sync = { path = "../common/sync" }
95system_api = { path = "../system_api", optional = true }
96tempfile = "3"
97thiserror = "1.0.20"
98cros_tracing = { path = "../cros_tracing" }
99swap = { path = "../swap" }
100vmm_vhost = { path = "../third_party/vmm_vhost" }
101virtio_sys = { path = "../virtio_sys" }
102virtio-media = { version = "0.0.7", optional = true }
103vm_control = { path = "../vm_control" }
104vm_memory = { path = "../vm_memory" }
105zerocopy = { version = "0.8.13", features = ["derive"] }
106
107[target.'cfg(any(target_os = "android", target_os = "linux"))'.dependencies]
108android_audio = { path = "../android_audio" }
109fuse = {path = "../fuse" }
110jail = { path = "../jail" }
111libcras = { version = "*", optional = true }
112minijail = "*"
113net_sys = { path = "../net_sys" }
114p9 = "0.3.1"
115usb_util = { path = "../usb_util" }
116vfio_sys = { path = "../vfio_sys" }
117vhost = { path = "../vhost" }
118
119[target.'cfg(windows)'.dependencies]
120broker_ipc = { path = "../broker_ipc" }
121tube_transporter = { path = "../tube_transporter" }
122win_audio = { path = "../win_audio"}
123win_util = { path = "../win_util"}
124winapi = "0.3"
125
126[dependencies.futures]
127version = "0.3"
128features = ["async-await", "std"]
129default-features = false
130
131[dev-dependencies]
132bytes = "1.1.0"
133crc32fast = "1"
134libtest-mimic = "0.6"
135named-lock = "0.3"
136tempfile = "3"
137