Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
google
GitHub Repository: google/crosvm
Path: blob/main/devices/Cargo.toml
5392 views
1
[package]
2
name = "devices"
3
version = "0.1.0"
4
authors = ["The ChromiumOS Authors"]
5
edition = "2021"
6
7
[features]
8
android_display = ["gpu_display/android_display"]
9
android_display_stub = ["gpu_display/android_display_stub"]
10
arc_quota = ["dbus", "protobuf", "system_api", "fs_permission_translation"]
11
fs_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.
16
fs_permission_translation = []
17
audio = []
18
audio_aaudio = []
19
audio_cras = ["libcras"]
20
balloon = []
21
gpu = ["gpu_display"]
22
gunyah = []
23
libvda-stub = ["libvda/libvda-stub"]
24
net = []
25
pvclock = []
26
geniezone = []
27
halla = []
28
usb = []
29
vaapi = ["cros-codecs/vaapi", "crc32fast"]
30
media = ["virtio-media"]
31
video-decoder = []
32
video-encoder = []
33
gbm = ["rutabaga_gfx/gbm"]
34
x = ["gpu_display/x"]
35
virgl_renderer = ["gpu", "rutabaga_gfx/virgl_renderer"]
36
vtpm = ["system_api", "protobuf", "dbus"]
37
registered_events = []
38
slirp = ["net_util/slirp"]
39
slirp-ring-capture = []
40
stats = []
41
seccomp_trace = []
42
swap = ["swap/enable"]
43
whpx = []
44
pci-hotplug = []
45
noncoherent-dma = []
46
47
[dependencies]
48
argh = { workspace = true }
49
async-task = "4"
50
acpi_tables = { workspace = true }
51
anyhow = { workspace = true }
52
async-trait = "0.1.36"
53
audio_streams = { workspace = true }
54
audio_util = { workspace = true }
55
balloon_control = { workspace = true }
56
base = { workspace = true }
57
bit_field = { workspace = true }
58
cfg-if = { workspace = true }
59
chrono = { version = "0.4.34", features = [ "serde", "now" ], default-features = false }
60
crc32fast = { version = "1.2.1", optional = true }
61
cros_async = { workspace = true }
62
cros-codecs = { version = "0.0.4", optional = true }
63
crosvm_cli = { workspace = true }
64
data_model = { workspace = true }
65
dbus = { version = "0.9.7", features = ["stdfd"], optional = true }
66
disk = { workspace = true }
67
downcast-rs = "1.2.0"
68
enumn = { workspace = true }
69
ffmpeg = { workspace = true, optional = true }
70
gpu_display = { workspace = true, optional = true }
71
rutabaga_gfx = { workspace = true }
72
hypervisor = { workspace = true }
73
kvm_sys = { workspace = true }
74
libc = { workspace = true }
75
libvda = { path = "../media/libvda", optional = true }
76
linux_input_sys = { workspace = true }
77
metrics = { workspace = true }
78
metrics_events = { workspace = true }
79
net_util = { workspace = true }
80
num-traits = "0.2"
81
power_monitor = { workspace = true }
82
protobuf = { version = "3.2", optional = true }
83
protos = { workspace = true, optional = true }
84
rand = { workspace = true }
85
remain = { workspace = true }
86
resources = { workspace = true }
87
serde = { workspace = true, features = [ "derive", "rc" ] }
88
serde_json = { workspace = true }
89
serde_keyvalue = { workspace = true, features = ["argh_derive"] }
90
smallvec = "1.6.1"
91
snapshot = { workspace = true }
92
static_assertions = { workspace = true }
93
sync = { workspace = true }
94
system_api = { workspace = true, optional = true }
95
tempfile = "3"
96
thiserror = { workspace = true }
97
cros_tracing = { workspace = true }
98
swap = { workspace = true }
99
uuid = { version = "1", features = ["v8", "serde"] }
100
vmm_vhost = { workspace = true }
101
virtio_sys = { workspace = true }
102
virtio-media = { version = "0.0.7", optional = true }
103
vm_control = { workspace = true }
104
vm_memory = { workspace = true }
105
zerocopy = { version = "0.8.13", features = ["derive"] }
106
ciborium = { workspace = true }
107
108
[target.'cfg(any(target_os = "android", target_os = "linux"))'.dependencies]
109
android_audio = { workspace = true }
110
fuse = { workspace = true }
111
jail = { path = "../jail" }
112
libcras = { version = "*", optional = true }
113
minijail = "*"
114
net_sys = { workspace = true }
115
p9 = "0.3.1"
116
usb_util = { workspace = true }
117
vfio_sys = { workspace = true }
118
vhost = { workspace = true }
119
120
[target.'cfg(target_arch = "aarch64")'.dependencies]
121
aarch64_sys_reg = { workspace = true }
122
123
[target.'cfg(windows)'.dependencies]
124
proc_init = { workspace = true }
125
tube_transporter = { path = "../tube_transporter" }
126
win_audio = { path = "../win_audio"}
127
win_util = { path = "../win_util"}
128
winapi = "0.3"
129
130
[dependencies.futures]
131
version = "0.3"
132
features = ["async-await", "std"]
133
default-features = false
134
135
[dev-dependencies]
136
bytes = "1.1.0"
137
crc32fast = "1"
138
libtest-mimic = "0.6"
139
named-lock = "0.3"
140
tempfile = "3"
141
142