• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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    default_applicable_licenses: ["external_rust_crates_zerocopy_license"],
8}
9
10// Added automatically by a large-scale-change
11// See: http://go/android-license-faq
12license {
13    name: "external_rust_crates_zerocopy_license",
14    visibility: [":__subpackages__"],
15    license_kinds: [
16        "SPDX-license-identifier-BSD",
17    ],
18    license_text: [
19        "LICENSE",
20    ],
21}
22
23rust_library {
24    name: "libzerocopy",
25    host_supported: true,
26    crate_name: "zerocopy",
27    cargo_env_compat: true,
28    cargo_pkg_version: "0.7.34",
29    crate_root: "src/lib.rs",
30    edition: "2018",
31    features: [
32        "byteorder",
33        "derive",
34        "simd",
35        "zerocopy-derive",
36    ],
37    rustlibs: ["libbyteorder"],
38    proc_macros: ["libzerocopy_derive"],
39    apex_available: [
40        "//apex_available:platform",
41        "//apex_available:anyapex",
42    ],
43    product_available: true,
44    vendor_available: true,
45}
46
47rust_library_rlib {
48    name: "libzerocopy_nostd",
49    crate_name: "zerocopy",
50    cargo_env_compat: true,
51    cargo_pkg_version: "0.7.34",
52    crate_root: "src/lib.rs",
53    edition: "2018",
54    features: [
55        "alloc",
56        "byteorder",
57        "derive",
58        "simd",
59        "zerocopy-derive",
60    ],
61    rustlibs: ["libbyteorder_nostd"],
62    proc_macros: ["libzerocopy_derive"],
63    apex_available: [
64        "//apex_available:platform",
65        "//apex_available:anyapex",
66    ],
67    prefer_rlib: true,
68    no_stdlibs: true,
69    stdlibs: [
70        "liballoc.rust_sysroot",
71        "libcompiler_builtins.rust_sysroot",
72        "libcore.rust_sysroot",
73    ],
74    product_available: true,
75    vendor_available: true,
76}
77
78rust_library_rlib {
79    name: "libzerocopy_nostd_noalloc",
80    crate_name: "zerocopy",
81    cargo_env_compat: true,
82    cargo_pkg_version: "0.7.34",
83    crate_root: "src/lib.rs",
84    edition: "2018",
85    features: [
86        "byteorder",
87        "derive",
88        "simd",
89        "zerocopy-derive",
90    ],
91    rustlibs: ["libbyteorder_nostd"],
92    proc_macros: ["libzerocopy_derive"],
93    apex_available: [
94        "//apex_available:platform",
95        "//apex_available:anyapex",
96    ],
97    prefer_rlib: true,
98    no_stdlibs: true,
99    stdlibs: [
100        "libcompiler_builtins.rust_sysroot",
101        "libcore.rust_sysroot",
102    ],
103    product_available: true,
104    vendor_available: true,
105}
106