xref: /aosp_15_r20/external/crosvm/ext2/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_test {
16    name: "ext2_test_src_lib",
17    defaults: ["crosvm_inner_defaults"],
18    host_supported: true,
19    crate_name: "ext2",
20    cargo_env_compat: true,
21    cargo_pkg_version: "0.1.0",
22    crate_root: "src/lib.rs",
23    test_suites: ["general-tests"],
24    auto_gen_config: true,
25    test_options: {
26        unit_test: true,
27    },
28    edition: "2021",
29    rustlibs: [
30        "libanyhow",
31        "libargh",
32        "libbase_rust",
33        "liblibc",
34        "libtempfile",
35        "libuuid",
36        "libwalkdir",
37        "libzerocopy",
38    ],
39    proc_macros: [
40        "libenumn",
41        "libzerocopy_derive",
42    ],
43}
44
45rust_test {
46    name: "ext2_test_tests_tests",
47    defaults: ["crosvm_inner_defaults"],
48    host_supported: true,
49    crate_name: "tests",
50    cargo_env_compat: true,
51    cargo_pkg_version: "0.1.0",
52    crate_root: "tests/tests.rs",
53    test_suites: ["general-tests"],
54    auto_gen_config: true,
55    test_options: {
56        unit_test: true,
57    },
58    edition: "2021",
59    rustlibs: [
60        "libanyhow",
61        "libargh",
62        "libbase_rust",
63        "libext2",
64        "liblibc",
65        "libtempfile",
66        "libuuid",
67        "libwalkdir",
68        "libzerocopy",
69    ],
70    proc_macros: [
71        "libenumn",
72        "libzerocopy_derive",
73    ],
74}
75
76rust_library {
77    name: "libext2",
78    defaults: ["crosvm_inner_defaults"],
79    host_supported: true,
80    crate_name: "ext2",
81    cargo_env_compat: true,
82    cargo_pkg_version: "0.1.0",
83    crate_root: "src/lib.rs",
84    edition: "2021",
85    rustlibs: [
86        "libanyhow",
87        "libbase_rust",
88        "liblibc",
89        "libuuid",
90        "libzerocopy",
91    ],
92    proc_macros: [
93        "libenumn",
94        "libzerocopy_derive",
95    ],
96}
97