• 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: "libx86_64_rust",
17    defaults: ["crosvm_defaults"],
18    host_supported: true,
19    crate_name: "x86_64",
20    cargo_env_compat: true,
21    cargo_pkg_version: "0.1.0",
22    crate_root: "src/lib.rs",
23    edition: "2021",
24    features: [
25        "gdb",
26        "gdbstub_arch",
27    ],
28    rustlibs: [
29        "libacpi_tables",
30        "libanyhow",
31        "libarch",
32        "libbase_rust",
33        "libcfg_if",
34        "libchrono",
35        "libcros_fdt",
36        "libdevices",
37        "libgdbstub_arch",
38        "libhypervisor",
39        "libjail",
40        "libkernel_cmdline",
41        "libkernel_loader",
42        "liblibc",
43        "libminijail_rust",
44        "libonce_cell",
45        "librand",
46        "libresources",
47        "libswap",
48        "libsync_rust",
49        "libthiserror",
50        "libuuid",
51        "libvm_control",
52        "libvm_memory",
53        "libzerocopy",
54    ],
55    proc_macros: ["libremain"],
56    apex_available: ["com.android.virt"],
57    // Exclude arm family manually
58    arch: {
59        arm: {
60            enabled: false,
61        },
62        arm64: {
63            enabled: false,
64        },
65    },
66
67}
68
69rust_test {
70    name: "x86_64_test_src_lib",
71    defaults: ["crosvm_defaults"],
72    host_supported: true,
73    crate_name: "x86_64",
74    cargo_env_compat: true,
75    cargo_pkg_version: "0.1.0",
76    crate_root: "src/lib.rs",
77    test_suites: ["general-tests"],
78    auto_gen_config: true,
79    test_options: {
80        unit_test: false,
81    },
82    edition: "2021",
83    features: [
84        "gdb",
85        "gdbstub_arch",
86    ],
87    rustlibs: [
88        "libacpi_tables",
89        "libanyhow",
90        "libarch",
91        "libbase_rust",
92        "libcfg_if",
93        "libchrono",
94        "libcros_fdt",
95        "libdevices",
96        "libgdbstub_arch",
97        "libhypervisor",
98        "libjail",
99        "libkernel_cmdline",
100        "libkernel_loader",
101        "liblibc",
102        "libminijail_rust",
103        "libonce_cell",
104        "librand",
105        "libresources",
106        "libswap",
107        "libsync_rust",
108        "libthiserror",
109        "libuuid",
110        "libvm_control",
111        "libvm_memory",
112        "libzerocopy",
113    ],
114    proc_macros: ["libremain"],
115    // Exclude arm family manually
116    arch: {
117        arm: {
118            enabled: false,
119        },
120        arm64: {
121            enabled: false,
122        },
123    },
124
125}
126