xref: /aosp_15_r20/external/crosvm/fuse/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: "fuse_test_src_lib",
17    defaults: ["crosvm_inner_defaults"],
18    host_supported: true,
19    crate_name: "fuse",
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        "libbase_rust",
31        "libbitflags",
32        "libcros_tracing",
33        "libcrossbeam_utils",
34        "liblibc",
35        "libthiserror",
36        "libzerocopy",
37    ],
38    proc_macros: [
39        "libenumn",
40        "libremain",
41    ],
42}
43
44rust_library {
45    name: "libfuse_rust",
46    defaults: ["crosvm_inner_defaults"],
47    host_supported: true,
48    crate_name: "fuse",
49    cargo_env_compat: true,
50    cargo_pkg_version: "0.1.0",
51    crate_root: "src/lib.rs",
52    edition: "2021",
53    rustlibs: [
54        "libbase_rust",
55        "libbitflags",
56        "libcros_tracing",
57        "libcrossbeam_utils",
58        "liblibc",
59        "libthiserror",
60        "libzerocopy",
61    ],
62    proc_macros: [
63        "libenumn",
64        "libremain",
65    ],
66    visibility: [
67        "//packages/modules/Virtualization/guest/authfs",
68        "//packages/modules/Virtualization/guest/zipfuse",
69        "//packages/modules/Virtualization/tests/authfs",
70    ],
71}
72