• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// This file is generated by cargo2android.py --run --device --tests --dependencies --global_defaults=crosvm_defaults --add_workspace.
2// Do not modify this file as changes will be overridden on upgrade.
3
4package {
5    // See: http://go/android-license-faq
6    // A large-scale-change added 'default_applicable_licenses' to import
7    // all of the 'license_kinds' from "external_crosvm_license"
8    // to get the below license kinds:
9    //   SPDX-license-identifier-BSD
10    default_applicable_licenses: ["external_crosvm_license"],
11}
12
13rust_defaults {
14    name: "hypervisor_defaults",
15    defaults: ["crosvm_defaults"],
16    crate_name: "hypervisor",
17    // has rustc warnings
18    srcs: ["src/lib.rs"],
19    test_suites: ["general-tests"],
20    auto_gen_config: true,
21    edition: "2018",
22    rustlibs: [
23        "libbase_rust",
24        "libbit_field",
25        "libdata_model",
26        "libdowncast_rs",
27        "libkvm",
28        "libkvm_sys",
29        "liblibc",
30        "libserde",
31        "libsync_rust",
32        "libvm_memory",
33    ],
34    proc_macros: ["libenumn"],
35}
36
37rust_test_host {
38    name: "hypervisor_host_test_src_lib",
39    defaults: ["hypervisor_defaults"],
40    test_options: {
41        unit_test: true,
42    },
43}
44
45rust_test {
46    name: "hypervisor_device_test_src_lib",
47    defaults: ["hypervisor_defaults"],
48}
49
50rust_library {
51    name: "libhypervisor",
52    defaults: ["crosvm_defaults"],
53    // has rustc warnings
54    host_supported: true,
55    crate_name: "hypervisor",
56    srcs: ["src/lib.rs"],
57    edition: "2018",
58    rustlibs: [
59        "libbase_rust",
60        "libbit_field",
61        "libdata_model",
62        "libdowncast_rs",
63        "libkvm",
64        "libkvm_sys",
65        "liblibc",
66        "libserde",
67        "libsync_rust",
68        "libvm_memory",
69    ],
70    proc_macros: ["libenumn"],
71}
72
73// dependent_library ["feature_list"]
74//   ../assertions/src/lib.rs
75//   ../base/src/lib.rs
76//   ../bit_field/bit_field_derive/bit_field_derive.rs
77//   ../bit_field/src/lib.rs
78//   ../cros_async/src/lib.rs
79//   ../data_model/src/lib.rs
80//   ../enumn/src/lib.rs
81//   ../io_uring/src/lib.rs
82//   ../kvm/src/lib.rs
83//   ../kvm_sys/src/lib.rs
84//   ../sync/src/lib.rs
85//   ../sys_util/poll_token_derive/poll_token_derive.rs
86//   ../sys_util/src/lib.rs
87//   ../tempfile/src/lib.rs
88//   ../vm_memory/src/lib.rs
89//   async-task-4.0.3 "default,std"
90//   async-trait-0.1.50
91//   autocfg-1.0.1
92//   bitflags-1.2.1 "default"
93//   downcast-rs-1.2.0 "default,std"
94//   futures-0.3.14 "alloc"
95//   futures-channel-0.3.14 "alloc,futures-sink,sink"
96//   futures-core-0.3.14 "alloc"
97//   futures-io-0.3.14
98//   futures-sink-0.3.14 "alloc"
99//   futures-task-0.3.14 "alloc"
100//   futures-util-0.3.14 "alloc,futures-sink,sink"
101//   intrusive-collections-0.9.0 "alloc,default"
102//   itoa-0.4.7
103//   libc-0.2.93 "default,std"
104//   memoffset-0.5.6 "default"
105//   paste-1.0.5
106//   pin-project-lite-0.2.6
107//   pin-utils-0.1.0
108//   proc-macro2-1.0.26 "default,proc-macro"
109//   quote-1.0.9 "default,proc-macro"
110//   ryu-1.0.5
111//   serde-1.0.125 "default,derive,serde_derive,std"
112//   serde_derive-1.0.125 "default"
113//   serde_json-1.0.64 "default,std"
114//   slab-0.4.3 "default,std"
115//   smallvec-1.6.1
116//   syn-1.0.70 "clone-impls,default,derive,full,parsing,printing,proc-macro,quote,visit-mut"
117//   thiserror-1.0.24
118//   thiserror-impl-1.0.24
119//   unicode-xid-0.2.1 "default"
120