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_spin_license"],
6    default_team: "trendy_team_android_rust",
7}
8
9license {
10    name: "external_rust_crates_spin_license",
11    visibility: [":__subpackages__"],
12    license_kinds: ["SPDX-license-identifier-MIT"],
13    license_text: ["LICENSE"],
14}
15
16rust_library {
17    name: "libspin",
18    host_supported: true,
19    crate_name: "spin",
20    cargo_env_compat: true,
21    cargo_pkg_version: "0.9.8",
22    crate_root: "src/lib.rs",
23    edition: "2015",
24    features: [
25        "mutex",
26        "once",
27        "spin_mutex",
28        "std",
29    ],
30    apex_available: [
31        "//apex_available:platform",
32        "//apex_available:anyapex",
33    ],
34    product_available: true,
35    vendor_available: true,
36    min_sdk_version: "29",
37}
38
39rust_test {
40    name: "spin_test_src_lib",
41    host_supported: true,
42    crate_name: "spin",
43    cargo_env_compat: true,
44    cargo_pkg_version: "0.9.8",
45    crate_root: "src/lib.rs",
46    test_suites: ["general-tests"],
47    auto_gen_config: true,
48    test_options: {
49        unit_test: true,
50    },
51    edition: "2015",
52    features: [
53        "mutex",
54        "once",
55        "spin_mutex",
56        "std",
57    ],
58    rustlibs: ["libcriterion"],
59}
60
61rust_library_rlib {
62    name: "libspin_nostd",
63    crate_name: "spin",
64    cargo_env_compat: true,
65    cargo_pkg_version: "0.9.8",
66    crate_root: "src/lib.rs",
67    edition: "2015",
68    features: [
69        "mutex",
70        "once",
71        "spin_mutex",
72    ],
73    apex_available: [
74        "//apex_available:platform",
75        "//apex_available:anyapex",
76    ],
77    prefer_rlib: true,
78    no_stdlibs: true,
79    stdlibs: [
80        "libcompiler_builtins.rust_sysroot",
81        "libcore.rust_sysroot",
82    ],
83    product_available: true,
84    vendor_available: true,
85    min_sdk_version: "29",
86}
87
88dirgroup {
89    name: "trusty_dirgroup_external_rust_crates_spin",
90    visibility: ["//trusty/vendor/google/aosp/scripts"],
91    dirs: ["."],
92}
93