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_memoffset_license"],
6}
7
8// Added automatically by a large-scale-change
9// See: http://go/android-license-faq
10license {
11    name: "external_rust_crates_memoffset_license",
12    visibility: [":__subpackages__"],
13    license_kinds: [
14        "SPDX-license-identifier-MIT",
15    ],
16    license_text: [
17        "LICENSE",
18    ],
19}
20
21rust_library {
22    name: "libmemoffset",
23    host_supported: true,
24    crate_name: "memoffset",
25    srcs: ["src/lib.rs"],
26    edition: "2015",
27    features: ["default"],
28    cfgs: [
29        "allow_clippy",
30        "doctests",
31        "maybe_uninit",
32        "raw_ref_macros",
33        "tuple_ty",
34    ],
35    apex_available: [
36        "//apex_available:platform",
37        "com.android.virt",
38    ],
39}
40
41rust_defaults {
42    name: "memoffset_defaults",
43    crate_name: "memoffset",
44    srcs: ["src/lib.rs"],
45    test_suites: ["general-tests"],
46    auto_gen_config: true,
47    edition: "2015",
48    features: ["default"],
49    cfgs: [
50        "allow_clippy",
51        "doctests",
52        "maybe_uninit",
53        "raw_ref_macros",
54        "tuple_ty",
55    ],
56    rustlibs: [
57        // ANDROID: disable for now just to avoid another dependency.
58        //"libdoc_comment",
59    ],
60}
61
62rust_test_host {
63    name: "memoffset_host_test_src_lib",
64    defaults: ["memoffset_defaults"],
65    test_options: {
66        unit_test: true,
67    },
68}
69
70rust_test {
71    name: "memoffset_device_test_src_lib",
72    defaults: ["memoffset_defaults"],
73}
74
75// dependent_library ["feature_list"]
76//   autocfg-1.0.1
77//   doc-comment-0.3.3
78