• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// This file is generated by cargo_embargo.
2// Do not modify this file after the first "rust_*" or "genrule" module
3// because the changes will be overridden on upgrade.
4// Content before the first "rust_*" or "genrule" module is preserved.
5
6package {
7    // See: http://go/android-license-faq
8    // A large-scale-change added 'default_applicable_licenses' to import
9    // all of the 'license_kinds' from "external_crosvm_license"
10    // to get the below license kinds:
11    //   SPDX-license-identifier-BSD
12    default_applicable_licenses: ["external_crosvm_license"],
13}
14
15rust_library {
16    name: "libvm_control",
17    defaults: ["crosvm_defaults"],
18    host_supported: true,
19    crate_name: "vm_control",
20    cargo_env_compat: true,
21    cargo_pkg_version: "0.1.0",
22    crate_root: "src/lib.rs",
23    edition: "2021",
24    features: [
25        "audio",
26        "balloon",
27        "gdb",
28        "gdbstub",
29        "gdbstub_arch",
30        "gpu",
31    ],
32    rustlibs: [
33        "libanyhow",
34        "libballoon_control",
35        "libbase_rust",
36        "libcfg_if",
37        "libgdbstub",
38        "libgdbstub_arch",
39        "libhypervisor",
40        "liblibc",
41        "libmetrics",
42        "libmetrics_events",
43        "libonce_cell",
44        "libresources",
45        "librutabaga_gfx",
46        "libserde",
47        "libserde_json",
48        "libserde_keyvalue",
49        "libsnapshot_crosvm",
50        "libswap",
51        "libsync_rust",
52        "libthiserror",
53        "libvm_control_product",
54        "libvm_memory",
55    ],
56    proc_macros: ["libremain"],
57    apex_available: ["com.android.virt"],
58}
59
60rust_test {
61    name: "vm_control_test_src_lib",
62    defaults: ["crosvm_defaults"],
63    host_supported: true,
64    crate_name: "vm_control",
65    cargo_env_compat: true,
66    cargo_pkg_version: "0.1.0",
67    crate_root: "src/lib.rs",
68    test_suites: ["general-tests"],
69    auto_gen_config: true,
70    test_options: {
71        unit_test: true,
72    },
73    edition: "2021",
74    features: [
75        "audio",
76        "balloon",
77        "gdb",
78        "gdbstub",
79        "gdbstub_arch",
80        "gpu",
81    ],
82    rustlibs: [
83        "libanyhow",
84        "libballoon_control",
85        "libbase_rust",
86        "libcfg_if",
87        "libgdbstub",
88        "libgdbstub_arch",
89        "libhypervisor",
90        "liblibc",
91        "libmetrics",
92        "libmetrics_events",
93        "libonce_cell",
94        "libresources",
95        "librutabaga_gfx",
96        "libserde",
97        "libserde_json",
98        "libserde_keyvalue",
99        "libsnapshot_crosvm",
100        "libswap",
101        "libsync_rust",
102        "libthiserror",
103        "libvm_control_product",
104        "libvm_memory",
105    ],
106    proc_macros: ["libremain"],
107}
108