• 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_library {
14    name: "libvm_memory",
15    defaults: ["crosvm_defaults"],
16    host_supported: true,
17    crate_name: "vm_memory",
18    srcs: ["src/lib.rs"],
19    edition: "2018",
20    rustlibs: [
21        "libbase_rust",
22        "libbitflags",
23        "libcros_async",
24        "libdata_model",
25        "liblibc",
26    ],
27}
28
29rust_defaults {
30    name: "vm_memory_defaults",
31    defaults: ["crosvm_defaults"],
32    crate_name: "vm_memory",
33    srcs: ["src/lib.rs"],
34    test_suites: ["general-tests"],
35    auto_gen_config: true,
36    edition: "2018",
37    rustlibs: [
38        "libbase_rust",
39        "libbitflags",
40        "libcros_async",
41        "libdata_model",
42        "liblibc",
43    ],
44}
45
46rust_test_host {
47    name: "vm_memory_host_test_src_lib",
48    defaults: ["vm_memory_defaults"],
49    test_options: {
50        unit_test: true,
51    },
52}
53
54rust_test {
55    name: "vm_memory_device_test_src_lib",
56    defaults: ["vm_memory_defaults"],
57}
58
59// dependent_library ["feature_list"]
60//   ../assertions/src/lib.rs
61//   ../base/src/lib.rs
62//   ../cros_async/src/lib.rs
63//   ../data_model/src/lib.rs
64//   ../io_uring/src/lib.rs
65//   ../sync/src/lib.rs
66//   ../sys_util/poll_token_derive/poll_token_derive.rs
67//   ../sys_util/src/lib.rs
68//   ../tempfile/src/lib.rs
69//   async-task-4.0.3 "default,std"
70//   async-trait-0.1.50
71//   autocfg-1.0.1
72//   bitflags-1.2.1 "default"
73//   futures-0.3.14 "alloc"
74//   futures-channel-0.3.14 "alloc,futures-sink,sink"
75//   futures-core-0.3.14 "alloc"
76//   futures-io-0.3.14
77//   futures-sink-0.3.14 "alloc"
78//   futures-task-0.3.14 "alloc"
79//   futures-util-0.3.14 "alloc,futures-sink,sink"
80//   intrusive-collections-0.9.0 "alloc,default"
81//   itoa-0.4.7
82//   libc-0.2.93 "default,std"
83//   memoffset-0.5.6 "default"
84//   paste-1.0.5
85//   pin-project-lite-0.2.6
86//   pin-utils-0.1.0
87//   proc-macro2-1.0.26 "default,proc-macro"
88//   quote-1.0.9 "default,proc-macro"
89//   ryu-1.0.5
90//   serde-1.0.125 "default,derive,serde_derive,std"
91//   serde_derive-1.0.125 "default"
92//   serde_json-1.0.64 "default,std"
93//   slab-0.4.3 "default,std"
94//   smallvec-1.6.1
95//   syn-1.0.70 "clone-impls,default,derive,full,parsing,printing,proc-macro,quote,visit-mut"
96//   thiserror-1.0.24
97//   thiserror-impl-1.0.24
98//   unicode-xid-0.2.1 "default"
99