• 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_inner_defaults"],
18    host_supported: true,
19    crate_name: "vm_control",
20    cargo_env_compat: true,
21    cargo_pkg_version: "0.1.0",
22    srcs: ["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    visibility: ["//packages/modules/Virtualization/virtualizationmanager"],
56}
57
58rust_test {
59    name: "vm_control_test_src_lib",
60    defaults: ["crosvm_inner_defaults"],
61    host_supported: true,
62    crate_name: "vm_control",
63    cargo_env_compat: true,
64    cargo_pkg_version: "0.1.0",
65    srcs: ["src/lib.rs"],
66    test_suites: ["general-tests"],
67    auto_gen_config: true,
68    test_options: {
69        unit_test: true,
70    },
71    edition: "2021",
72    features: [
73        "balloon",
74        "gdb",
75        "gdbstub",
76        "gdbstub_arch",
77        "gpu",
78    ],
79    rustlibs: [
80        "libanyhow",
81        "libballoon_control",
82        "libbase_rust",
83        "libcfg_if",
84        "libcrypto_generic",
85        "libgdbstub",
86        "libgdbstub_arch",
87        "libhypervisor",
88        "liblibc",
89        "libonce_cell",
90        "libresources",
91        "librutabaga_gfx",
92        "libserde",
93        "libserde_json",
94        "libserde_keyvalue",
95        "libswap",
96        "libsync_rust",
97        "libthiserror",
98        "libvm_control_product",
99        "libvm_memory",
100    ],
101    proc_macros: ["libremain"],
102    aliases: ["crypto_generic:crypto"],
103}
104