blob: 009a09f82d0d3df6e7706186abc912d781ea69df [file] [log] [blame]
Zach Reizner639d9672017-05-01 17:57:18 -07001[package]
2name = "crosvm"
3version = "0.1.0"
4authors = ["The Chromium OS Authors"]
David Tolnay0159e5a2019-03-12 20:52:19 -07005edition = "2018"
Zach Reizner639d9672017-05-01 17:57:18 -07006
Zach Reizner267f2c82019-07-31 17:07:27 -07007[lib]
8path = "src/crosvm.rs"
9
10[[bin]]
11name = "crosvm"
12path = "src/main.rs"
13
Zach Reizner639d9672017-05-01 17:57:18 -070014[profile.release]
Zach Reizner639d9672017-05-01 17:57:18 -070015panic = 'abort'
Zach Reiznerf6b58e42018-10-15 15:40:09 -070016overflow-checks = true
Zach Reizner639d9672017-05-01 17:57:18 -070017
Dylan Reid939d5882017-11-08 17:33:46 -080018[workspace]
paulhsiab6d842f2019-01-18 20:00:36 +080019members = ["qcow_utils"]
paulhsiad1eceec2018-12-20 15:44:11 +080020exclude = [
21 "assertions",
Dylan Reid2cc13832019-11-22 16:41:01 -080022 "cros_async",
paulhsiad1eceec2018-12-20 15:44:11 +080023 "data_model",
David Tolnay48ff4162019-04-06 14:30:04 -070024 "rand_ish",
paulhsiad1eceec2018-12-20 15:44:11 +080025 "sync",
26 "sys_util",
27 "syscall_defines",
David Tolnayfd67ec52019-04-10 17:59:15 -070028 "tempfile",
paulhsiad1eceec2018-12-20 15:44:11 +080029]
Dylan Reid939d5882017-11-08 17:33:46 -080030
Zach Reiznere0983c72018-01-16 17:35:27 -080031[features]
Dmitry Torokhov5e05a832018-05-10 10:25:58 -070032default-no-sandbox = []
Zach Reizner3a8100a2017-09-13 19:15:43 -070033gpu = ["devices/gpu"]
David Tolnay65928af2019-04-05 20:34:50 -070034plugin = ["protos/plugin", "crosvm_plugin", "protobuf"]
David Tolnay48ff4162019-04-06 14:30:04 -070035tpm = ["devices/tpm"]
36wl-dmabuf = ["devices/wl-dmabuf", "gpu_buffer", "resources/wl-dmabuf"]
Zach Reiznerf5285c62019-04-16 15:09:20 -070037x = ["devices/x"]
Gurchetan Singh144c2792019-09-09 14:40:11 -070038virtio-gpu-next = ["gpu_renderer/virtio-gpu-next"]
Cody Schuffelenf9b035d2019-07-08 16:14:24 -070039composite-disk = ["protos/composite-disk", "protobuf", "disk/composite-disk"]
Zach Reiznere0983c72018-01-16 17:35:27 -080040
Zach Reizner639d9672017-05-01 17:57:18 -070041[dependencies]
Sonny Raoed517d12018-02-13 22:09:43 -080042arch = { path = "arch" }
David Tolnay4b292af2019-04-12 16:57:48 -070043assertions = { path = "assertions" }
Dylan Reid3082e8e2019-01-07 10:33:48 -080044audio_streams = "*"
Jingkui Wang8cad7512018-05-22 11:22:13 -070045bit_field = { path = "bit_field" }
David Tolnay48ff4162019-04-06 14:30:04 -070046crosvm_plugin = { path = "crosvm_plugin", optional = true }
47data_model = "*"
Dylan Reidd169a8d2017-10-06 15:26:46 -070048devices = { path = "devices" }
Cody Schuffelen7d533e52019-07-02 16:54:05 -070049disk = { path = "disk" }
Miriam Zimmerman16f659f2019-01-15 16:23:48 -080050enumn = { path = "enumn" }
Zach Reizner6f685432018-04-25 17:49:56 -070051gpu_buffer = { path = "gpu_buffer", optional = true }
Gurchetan Singh144c2792019-09-09 14:40:11 -070052gpu_renderer = { path = "gpu_renderer", optional = true }
Dylan Reid61edbbf2017-05-12 16:15:53 -070053io_jail = { path = "io_jail" }
Sonny Rao6cc352f2018-02-01 17:49:01 -080054kernel_cmdline = { path = "kernel_cmdline" }
Zach Reizner639d9672017-05-01 17:57:18 -070055kernel_loader = { path = "kernel_loader" }
David Tolnay48ff4162019-04-06 14:30:04 -070056kvm = { path = "kvm" }
57kvm_sys = { path = "kvm_sys" }
Zach Reizneraa7f1022019-11-08 10:59:13 -080058libc = "0.2.44"
paulhsiaf052cfe2019-01-22 15:22:25 +080059libcras = "*"
David Tolnay48ff4162019-04-06 14:30:04 -070060msg_socket = { path = "msg_socket" }
Jason D. Clinton865323d2017-09-27 22:04:03 -060061net_util = { path = "net_util" }
Chirantan Ekbote800fcb02018-03-19 16:49:53 -070062p9 = { path = "p9" }
David Tolnayfd67ec52019-04-10 17:59:15 -070063protobuf = { version = "2.3", optional = true }
David Tolnay65928af2019-04-05 20:34:50 -070064protos = { path = "protos", optional = true }
Daniel Prilik22006042019-01-14 14:19:04 -080065rand_ish = { path = "rand_ish" }
David Tolnay3df35522019-03-11 12:36:30 -070066remain = "*"
David Tolnay48ff4162019-04-06 14:30:04 -070067resources = { path = "resources" }
68sync = { path = "sync" }
69sys_util = "*"
70vhost = { path = "vhost" }
71vm_control = { path = "vm_control" }
Zach Reizner639d9672017-05-01 17:57:18 -070072
Zach Reizner3cbded22017-08-30 17:07:01 -070073[target.'cfg(target_arch = "x86_64")'.dependencies]
74x86_64 = { path = "x86_64" }
Zach Reizner8864cb02018-01-16 17:59:03 -080075
Sonny Rao2ffa0cb2018-02-26 17:27:40 -080076[target.'cfg(any(target_arch = "aarch64", target_arch = "arm"))'.dependencies]
77aarch64 = { path = "aarch64" }
78
Zach Reizner8864cb02018-01-16 17:59:03 -080079[dev-dependencies]
paulhsiad1eceec2018-12-20 15:44:11 +080080sys_util = "*"
81
82[patch.crates-io]
83assertions = { path = "assertions" }
Dylan Reidb58b5522018-12-06 19:47:18 +000084audio_streams = { path = "../../third_party/adhd/audio_streams" } # ignored by ebuild
paulhsiad1eceec2018-12-20 15:44:11 +080085data_model = { path = "data_model" }
paulhsiaf052cfe2019-01-22 15:22:25 +080086libcras = { path = "../../third_party/adhd/cras/client/libcras" } # ignored by ebuild
paulhsiad1eceec2018-12-20 15:44:11 +080087poll_token_derive = { path = "sys_util/poll_token_derive" }
88sync = { path = "sync" }
Zach Reizner53528e32018-01-31 12:54:51 -080089sys_util = { path = "sys_util" }
paulhsiad1eceec2018-12-20 15:44:11 +080090syscall_defines = { path = "syscall_defines" }
David Tolnayfd67ec52019-04-10 17:59:15 -070091tempfile = { path = "tempfile" }