• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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_zerocopy_license"],
6    default_team: "trendy_team_android_rust",
7}
8
9license {
10    name: "external_rust_crates_zerocopy_license",
11    visibility: [":__subpackages__"],
12    license_kinds: ["SPDX-license-identifier-Apache-2.0"],
13    license_text: ["LICENSE"],
14}
15
16rust_library {
17    name: "libzerocopy",
18    host_supported: true,
19    crate_name: "zerocopy",
20    cargo_env_compat: true,
21    cargo_pkg_version: "0.8.23",
22    crate_root: "src/lib.rs",
23    edition: "2021",
24    features: [
25        "alloc",
26        "derive",
27        "simd",
28        "std",
29        "zerocopy-derive",
30    ],
31    cfgs: [
32        "zerocopy_aarch64_simd_1_59_0",
33        "zerocopy_core_error_1_81_0",
34        "zerocopy_diagnostic_on_unimplemented_1_78_0",
35        "zerocopy_generic_bounds_in_const_fn_1_61_0",
36        "zerocopy_panic_in_const_and_vec_try_reserve_1_57_0",
37        "zerocopy_target_has_atomics_1_60_0",
38    ],
39    proc_macros: ["libzerocopy_derive"],
40    apex_available: [
41        "//apex_available:platform",
42        "//apex_available:anyapex",
43    ],
44    product_available: true,
45    vendor_available: true,
46    min_sdk_version: "29",
47}
48
49rust_library_rlib {
50    name: "libzerocopy_nostd",
51    crate_name: "zerocopy",
52    cargo_env_compat: true,
53    cargo_pkg_version: "0.8.23",
54    crate_root: "src/lib.rs",
55    edition: "2021",
56    features: [
57        "alloc",
58        "derive",
59        "simd",
60        "zerocopy-derive",
61    ],
62    cfgs: [
63        "zerocopy_aarch64_simd_1_59_0",
64        "zerocopy_core_error_1_81_0",
65        "zerocopy_diagnostic_on_unimplemented_1_78_0",
66        "zerocopy_generic_bounds_in_const_fn_1_61_0",
67        "zerocopy_panic_in_const_and_vec_try_reserve_1_57_0",
68        "zerocopy_target_has_atomics_1_60_0",
69    ],
70    proc_macros: ["libzerocopy_derive"],
71    apex_available: [
72        "//apex_available:platform",
73        "//apex_available:anyapex",
74    ],
75    prefer_rlib: true,
76    no_stdlibs: true,
77    stdlibs: [
78        "liballoc.rust_sysroot",
79        "libcompiler_builtins.rust_sysroot",
80        "libcore.rust_sysroot",
81    ],
82    product_available: true,
83    vendor_available: true,
84    min_sdk_version: "29",
85}
86
87rust_library_rlib {
88    name: "libzerocopy_nostd_noalloc",
89    crate_name: "zerocopy",
90    cargo_env_compat: true,
91    cargo_pkg_version: "0.8.23",
92    crate_root: "src/lib.rs",
93    edition: "2021",
94    features: [
95        "derive",
96        "simd",
97        "zerocopy-derive",
98    ],
99    cfgs: [
100        "zerocopy_aarch64_simd_1_59_0",
101        "zerocopy_core_error_1_81_0",
102        "zerocopy_diagnostic_on_unimplemented_1_78_0",
103        "zerocopy_generic_bounds_in_const_fn_1_61_0",
104        "zerocopy_panic_in_const_and_vec_try_reserve_1_57_0",
105        "zerocopy_target_has_atomics_1_60_0",
106    ],
107    proc_macros: ["libzerocopy_derive"],
108    apex_available: [
109        "//apex_available:platform",
110        "//apex_available:anyapex",
111    ],
112    prefer_rlib: true,
113    no_stdlibs: true,
114    stdlibs: [
115        "libcompiler_builtins.rust_sysroot",
116        "libcore.rust_sysroot",
117    ],
118    product_available: true,
119    vendor_available: true,
120    min_sdk_version: "29",
121}
122
123dirgroup {
124    name: "trusty_dirgroup_external_rust_crates_zerocopy",
125    visibility: ["//trusty/vendor/google/aosp/scripts"],
126    dirs: ["."],
127}
128