xref: /aosp_15_r20/external/crosvm/vm_control/Android.bp (revision bb4ee6a4ae7042d18b07a98463b9c8b875e44b39)
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_inner_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        "balloon",
26        "gdb",
27        "gdbstub",
28        "gdbstub_arch",
29        "gpu",
30    ],
31    rustlibs: [
32        "libanyhow",
33        "libballoon_control",
34        "libbase_rust",
35        "libcfg_if",
36        "libcrypto_generic",
37        "libgdbstub",
38        "libgdbstub_arch",
39        "libhypervisor",
40        "liblibc",
41        "libonce_cell",
42        "libresources",
43        "librutabaga_gfx",
44        "libserde",
45        "libserde_json",
46        "libserde_keyvalue",
47        "libswap",
48        "libsync_rust",
49        "libthiserror",
50        "libvm_control_product",
51        "libvm_memory",
52    ],
53    proc_macros: ["libremain"],
54    aliases: ["crypto_generic:crypto"],
55}
56
57rust_test {
58    name: "vm_control_test_src_lib",
59    defaults: ["crosvm_inner_defaults"],
60    host_supported: true,
61    crate_name: "vm_control",
62    cargo_env_compat: true,
63    cargo_pkg_version: "0.1.0",
64    crate_root: "src/lib.rs",
65    test_suites: ["general-tests"],
66    auto_gen_config: true,
67    test_options: {
68        unit_test: true,
69    },
70    edition: "2021",
71    features: [
72        "balloon",
73        "gdb",
74        "gdbstub",
75        "gdbstub_arch",
76        "gpu",
77    ],
78    rustlibs: [
79        "libanyhow",
80        "libballoon_control",
81        "libbase_rust",
82        "libcfg_if",
83        "libcrypto_generic",
84        "libgdbstub",
85        "libgdbstub_arch",
86        "libhypervisor",
87        "liblibc",
88        "libonce_cell",
89        "libresources",
90        "librutabaga_gfx",
91        "libserde",
92        "libserde_json",
93        "libserde_keyvalue",
94        "libswap",
95        "libsync_rust",
96        "libthiserror",
97        "libvm_control_product",
98        "libvm_memory",
99    ],
100    proc_macros: ["libremain"],
101    aliases: ["crypto_generic:crypto"],
102}
103