blob: 55f7df0f987fadb14594defcf672fe00e87a9dcd [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 Reideed70202019-11-22 16:52:03 -080022 "async_core",
Dylan Reid2cc13832019-11-22 16:41:01 -080023 "cros_async",
paulhsiad1eceec2018-12-20 15:44:11 +080024 "data_model",
David Tolnay48ff4162019-04-06 14:30:04 -070025 "rand_ish",
paulhsiad1eceec2018-12-20 15:44:11 +080026 "sync",
27 "sys_util",
28 "syscall_defines",
David Tolnayfd67ec52019-04-10 17:59:15 -070029 "tempfile",
Udam Saini6fe08fa2020-04-30 13:46:40 -070030 "hypervisor"
paulhsiad1eceec2018-12-20 15:44:11 +080031]
Dylan Reid939d5882017-11-08 17:33:46 -080032
Zach Reiznere0983c72018-01-16 17:35:27 -080033[features]
Dmitry Torokhov5e05a832018-05-10 10:25:58 -070034default-no-sandbox = []
Zach Reizner3a8100a2017-09-13 19:15:43 -070035gpu = ["devices/gpu"]
David Tolnay65928af2019-04-05 20:34:50 -070036plugin = ["protos/plugin", "crosvm_plugin", "protobuf"]
David Tolnay48ff4162019-04-06 14:30:04 -070037tpm = ["devices/tpm"]
Keiichi Watanabe57df6a02019-12-06 22:24:40 +090038video-decoder = ["devices/video-decoder"]
39video-encoder = ["devices/video-encoder"]
David Tolnay48ff4162019-04-06 14:30:04 -070040wl-dmabuf = ["devices/wl-dmabuf", "gpu_buffer", "resources/wl-dmabuf"]
Zach Reiznerf5285c62019-04-16 15:09:20 -070041x = ["devices/x"]
Gurchetan Singh144c2792019-09-09 14:40:11 -070042virtio-gpu-next = ["gpu_renderer/virtio-gpu-next"]
Cody Schuffelenf9b035d2019-07-08 16:14:24 -070043composite-disk = ["protos/composite-disk", "protobuf", "disk/composite-disk"]
Lingfeng Yangddbe8b72020-01-30 10:00:36 -080044gfxstream = ["devices/gfxstream"]
Zach Reiznere0983c72018-01-16 17:35:27 -080045
Zach Reizner639d9672017-05-01 17:57:18 -070046[dependencies]
Sonny Raoed517d12018-02-13 22:09:43 -080047arch = { path = "arch" }
David Tolnay4b292af2019-04-12 16:57:48 -070048assertions = { path = "assertions" }
Dylan Reid3082e8e2019-01-07 10:33:48 -080049audio_streams = "*"
Jingkui Wang8cad7512018-05-22 11:22:13 -070050bit_field = { path = "bit_field" }
David Tolnay48ff4162019-04-06 14:30:04 -070051crosvm_plugin = { path = "crosvm_plugin", optional = true }
52data_model = "*"
Dylan Reidd169a8d2017-10-06 15:26:46 -070053devices = { path = "devices" }
Cody Schuffelen7d533e52019-07-02 16:54:05 -070054disk = { path = "disk" }
Miriam Zimmerman16f659f2019-01-15 16:23:48 -080055enumn = { path = "enumn" }
Zach Reizner6f685432018-04-25 17:49:56 -070056gpu_buffer = { path = "gpu_buffer", optional = true }
Gurchetan Singh144c2792019-09-09 14:40:11 -070057gpu_renderer = { path = "gpu_renderer", optional = true }
Dylan Reid61edbbf2017-05-12 16:15:53 -070058io_jail = { path = "io_jail" }
Sonny Rao6cc352f2018-02-01 17:49:01 -080059kernel_cmdline = { path = "kernel_cmdline" }
Zach Reizner639d9672017-05-01 17:57:18 -070060kernel_loader = { path = "kernel_loader" }
David Tolnay48ff4162019-04-06 14:30:04 -070061kvm = { path = "kvm" }
62kvm_sys = { path = "kvm_sys" }
Zach Reizneraa7f1022019-11-08 10:59:13 -080063libc = "0.2.44"
paulhsiaf052cfe2019-01-22 15:22:25 +080064libcras = "*"
Stephen Barbera2d845a2019-12-09 17:26:22 -080065minijail-sys = "*" # provided by ebuild
David Tolnay48ff4162019-04-06 14:30:04 -070066msg_socket = { path = "msg_socket" }
Jason D. Clinton865323d2017-09-27 22:04:03 -060067net_util = { path = "net_util" }
Chirantan Ekbote800fcb02018-03-19 16:49:53 -070068p9 = { path = "p9" }
David Tolnayfd67ec52019-04-10 17:59:15 -070069protobuf = { version = "2.3", optional = true }
David Tolnay65928af2019-04-05 20:34:50 -070070protos = { path = "protos", optional = true }
Daniel Prilik22006042019-01-14 14:19:04 -080071rand_ish = { path = "rand_ish" }
David Tolnay3df35522019-03-11 12:36:30 -070072remain = "*"
David Tolnay48ff4162019-04-06 14:30:04 -070073resources = { path = "resources" }
74sync = { path = "sync" }
75sys_util = "*"
76vhost = { path = "vhost" }
77vm_control = { path = "vm_control" }
Chuanxiao Dong91e84032019-11-01 15:18:13 +080078acpi_tables = { path = "acpi_tables" }
Zach Reizner639d9672017-05-01 17:57:18 -070079
Zach Reizner3cbded22017-08-30 17:07:01 -070080[target.'cfg(target_arch = "x86_64")'.dependencies]
81x86_64 = { path = "x86_64" }
Zach Reizner8864cb02018-01-16 17:59:03 -080082
Sonny Rao2ffa0cb2018-02-26 17:27:40 -080083[target.'cfg(any(target_arch = "aarch64", target_arch = "arm"))'.dependencies]
84aarch64 = { path = "aarch64" }
85
Zach Reizner8864cb02018-01-16 17:59:03 -080086[dev-dependencies]
paulhsiad1eceec2018-12-20 15:44:11 +080087sys_util = "*"
88
89[patch.crates-io]
90assertions = { path = "assertions" }
Dylan Reidb58b5522018-12-06 19:47:18 +000091audio_streams = { path = "../../third_party/adhd/audio_streams" } # ignored by ebuild
paulhsiad1eceec2018-12-20 15:44:11 +080092data_model = { path = "data_model" }
paulhsiaf052cfe2019-01-22 15:22:25 +080093libcras = { path = "../../third_party/adhd/cras/client/libcras" } # ignored by ebuild
Keiichi Watanabe57df6a02019-12-06 22:24:40 +090094libvda = { path = "../../platform2/arc/vm/libvda/rust" } # ignored by ebuild
Stephen Barbera2d845a2019-12-09 17:26:22 -080095minijail-sys = { path = "../../aosp/external/minijail" } # ignored by ebuild
paulhsiad1eceec2018-12-20 15:44:11 +080096poll_token_derive = { path = "sys_util/poll_token_derive" }
97sync = { path = "sync" }
Zach Reizner53528e32018-01-31 12:54:51 -080098sys_util = { path = "sys_util" }
paulhsiad1eceec2018-12-20 15:44:11 +080099syscall_defines = { path = "syscall_defines" }
David Tolnayfd67ec52019-04-10 17:59:15 -0700100tempfile = { path = "tempfile" }