• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// This file is generated by cargo2android.py --config cargo2android.json.
2// Do not modify this file as changes will be overridden on upgrade.
3
4package {
5    default_applicable_licenses: ["external_rust_crates_zerocopy_license"],
6}
7
8// Added automatically by a large-scale-change
9// See: http://go/android-license-faq
10license {
11    name: "external_rust_crates_zerocopy_license",
12    visibility: [":__subpackages__"],
13    license_kinds: [
14        "SPDX-license-identifier-BSD",
15    ],
16    license_text: [
17        "LICENSE",
18    ],
19}
20
21rust_library {
22    name: "libzerocopy",
23    host_supported: true,
24    crate_name: "zerocopy",
25    cargo_env_compat: true,
26    cargo_pkg_version: "0.6.1",
27    srcs: ["src/lib.rs"],
28    edition: "2018",
29    rustlibs: [
30        "libbyteorder",
31    ],
32    proc_macros: ["libzerocopy_derive"],
33    apex_available: [
34        "//apex_available:platform",
35        "//apex_available:anyapex",
36    ],
37    product_available: true,
38    vendor_available: true,
39}
40
41rust_test {
42    name: "zerocopy_test_src_lib",
43    host_supported: true,
44    crate_name: "zerocopy",
45    cargo_env_compat: true,
46    cargo_pkg_version: "0.6.1",
47    srcs: ["src/lib.rs"],
48    test_suites: ["general-tests"],
49    auto_gen_config: true,
50    test_options: {
51        unit_test: true,
52    },
53    edition: "2018",
54    rustlibs: [
55        "libbyteorder",
56        "librand",
57    ],
58    proc_macros: ["libzerocopy_derive"],
59}
60
61rust_library_rlib {
62    name: "libzerocopy_nostd",
63    crate_name: "zerocopy",
64    cargo_env_compat: true,
65    cargo_pkg_version: "0.6.1",
66    srcs: ["src/lib.rs"],
67    edition: "2018",
68    no_stdlibs: true,
69    rustlibs: [
70        "libbyteorder_nostd",
71    ],
72    proc_macros: ["libzerocopy_derive"],
73    apex_available: [
74        "//apex_available:platform",
75        "//apex_available:anyapex",
76    ],
77}
78
79