xref: /aosp_15_r20/external/crosvm/third_party/vmm_vhost/Android.bp (revision bb4ee6a4ae7042d18b07a98463b9c8b875e44b39)
1// This file is generated by cargo_embargo.
2// Do not modify this file because the changes will be overridden on upgrade.
3
4package {
5    default_applicable_licenses: ["external_rust_crates_vmm_vhost_license"],
6    default_team: "trendy_team_android_rust",
7}
8
9license {
10    name: "external_rust_crates_vmm_vhost_license",
11    visibility: [":__subpackages__"],
12    license_kinds: ["SPDX-license-identifier-Apache-2.0"],
13    license_text: ["LICENSE"],
14}
15
16rust_library {
17    name: "libvmm_vhost",
18    defaults: ["crosvm_inner_defaults"],
19    host_supported: true,
20    crate_name: "vmm_vhost",
21    cargo_env_compat: true,
22    cargo_pkg_version: "0.1.0",
23    crate_root: "src/lib.rs",
24    edition: "2021",
25    features: ["default"],
26    rustlibs: [
27        "libanyhow",
28        "libbase_rust",
29        "libbitflags",
30        "libcfg_if",
31        "liblibc",
32        "libthiserror",
33        "libzerocopy",
34    ],
35    proc_macros: [
36        "libenumn",
37        "libremain",
38    ],
39}
40
41rust_test {
42    name: "vmm_vhost_test_src_lib",
43    defaults: ["crosvm_inner_defaults"],
44    host_supported: true,
45    crate_name: "vmm_vhost",
46    cargo_env_compat: true,
47    cargo_pkg_version: "0.1.0",
48    crate_root: "src/lib.rs",
49    test_suites: ["general-tests"],
50    auto_gen_config: true,
51    test_options: {
52        unit_test: true,
53    },
54    edition: "2021",
55    features: ["default"],
56    rustlibs: [
57        "libanyhow",
58        "libbase_rust",
59        "libbitflags",
60        "libcfg_if",
61        "liblibc",
62        "libtempfile",
63        "libthiserror",
64        "libzerocopy",
65    ],
66    proc_macros: [
67        "libenumn",
68        "libremain",
69    ],
70}
71