1// This file is generated by cargo2android.py --run --device --dependencies --tests.
2
3package {
4    default_applicable_licenses: [
5        "external_rust_crates_parking_lot_core_license",
6    ],
7}
8
9// Added automatically by a large-scale-change that took the approach of
10// 'apply every license found to every target'. While this makes sure we respect
11// every license restriction, it may not be entirely correct.
12//
13// e.g. GPL in an MIT project might only apply to the contrib/ directory.
14//
15// Please consider splitting the single license below into multiple licenses,
16// taking care not to lose any license_kind information, and overriding the
17// default license using the 'licenses: [...]' property on targets as needed.
18//
19// For unused files, consider creating a 'fileGroup' with "//visibility:private"
20// to attach the license to, and including a comment whether the files may be
21// used in the current project.
22//
23// large-scale-change included anything that looked like it might be a license
24// text as a license_text. e.g. LICENSE, NOTICE, COPYING etc.
25//
26// Please consider removing redundant or irrelevant files from 'license_text:'.
27// See: http://go/android-license-faq
28license {
29    name: "external_rust_crates_parking_lot_core_license",
30    visibility: [":__subpackages__"],
31    license_kinds: [
32        "SPDX-license-identifier-Apache-2.0",
33        "SPDX-license-identifier-MIT",
34    ],
35    license_text: [
36        "LICENSE-APACHE",
37        "LICENSE-MIT",
38    ],
39}
40
41rust_library {
42    name: "libparking_lot_core",
43    host_supported: true,
44    crate_name: "parking_lot_core",
45    srcs: ["src/lib.rs"],
46    edition: "2018",
47    rustlibs: [
48        "libcfg_if",
49        "libinstant",
50        "liblibc",
51        "libsmallvec",
52    ],
53}
54
55rust_defaults {
56    name: "parking_lot_core_defaults",
57    crate_name: "parking_lot_core",
58    srcs: ["src/lib.rs"],
59    test_suites: ["general-tests"],
60    auto_gen_config: true,
61    edition: "2018",
62    rustlibs: [
63        "libcfg_if",
64        "libinstant",
65        "liblibc",
66        "libsmallvec",
67    ],
68}
69
70rust_test_host {
71    name: "parking_lot_core_host_test_src_lib",
72    defaults: ["parking_lot_core_defaults"],
73    test_options: {
74        unit_test: true,
75    },
76}
77
78rust_test {
79    name: "parking_lot_core_device_test_src_lib",
80    defaults: ["parking_lot_core_defaults"],
81}
82
83// dependent_library ["feature_list"]
84//   cfg-if-1.0.0
85//   instant-0.1.9
86//   libc-0.2.86 "default,std"
87//   smallvec-1.6.1
88