1// This file is generated by cargo2android.py --run --device --dependencies --tests.
2// Do not modify this file as changes will be overridden on upgrade.
3
4package {
5    default_applicable_licenses: [
6        "external_rust_crates_crossbeam-epoch_license",
7    ],
8}
9
10// Added automatically by a large-scale-change that took the approach of
11// 'apply every license found to every target'. While this makes sure we respect
12// every license restriction, it may not be entirely correct.
13//
14// e.g. GPL in an MIT project might only apply to the contrib/ directory.
15//
16// Please consider splitting the single license below into multiple licenses,
17// taking care not to lose any license_kind information, and overriding the
18// default license using the 'licenses: [...]' property on targets as needed.
19//
20// For unused files, consider creating a 'fileGroup' with "//visibility:private"
21// to attach the license to, and including a comment whether the files may be
22// used in the current project.
23//
24// large-scale-change included anything that looked like it might be a license
25// text as a license_text. e.g. LICENSE, NOTICE, COPYING etc.
26//
27// Please consider removing redundant or irrelevant files from 'license_text:'.
28// See: http://go/android-license-faq
29license {
30    name: "external_rust_crates_crossbeam-epoch_license",
31    visibility: [":__subpackages__"],
32    license_kinds: [
33        "SPDX-license-identifier-Apache-2.0",
34        "SPDX-license-identifier-MIT",
35    ],
36    license_text: [
37        "LICENSE-APACHE",
38        "LICENSE-MIT",
39    ],
40}
41
42rust_defaults {
43    name: "crossbeam-epoch_defaults",
44    crate_name: "crossbeam_epoch",
45    srcs: ["src/lib.rs"],
46    test_suites: ["general-tests"],
47    auto_gen_config: true,
48    edition: "2018",
49    features: [
50        "alloc",
51        "default",
52        "lazy_static",
53        "std",
54    ],
55    rustlibs: [
56        "libcfg_if",
57        "libcrossbeam_utils",
58        "liblazy_static",
59        "libmemoffset",
60        "librand",
61        "libscopeguard",
62    ],
63}
64
65rust_test_host {
66    name: "crossbeam-epoch_host_test_src_lib",
67    defaults: ["crossbeam-epoch_defaults"],
68    test_options: {
69        unit_test: true,
70    },
71}
72
73rust_test {
74    name: "crossbeam-epoch_device_test_src_lib",
75    defaults: ["crossbeam-epoch_defaults"],
76}
77
78rust_defaults {
79    name: "crossbeam-epoch_defaults_loom",
80    crate_name: "loom",
81    srcs: ["tests/loom.rs"],
82    test_suites: ["general-tests"],
83    auto_gen_config: true,
84    edition: "2018",
85    features: [
86        "alloc",
87        "default",
88        "lazy_static",
89        "std",
90    ],
91    rustlibs: [
92        "libcfg_if",
93        "libcrossbeam_epoch",
94        "libcrossbeam_utils",
95        "liblazy_static",
96        "libmemoffset",
97        "librand",
98        "libscopeguard",
99    ],
100}
101
102rust_test_host {
103    name: "crossbeam-epoch_host_test_tests_loom",
104    defaults: ["crossbeam-epoch_defaults_loom"],
105    test_options: {
106        unit_test: true,
107    },
108}
109
110rust_test {
111    name: "crossbeam-epoch_device_test_tests_loom",
112    defaults: ["crossbeam-epoch_defaults_loom"],
113}
114
115rust_library {
116    name: "libcrossbeam_epoch",
117    host_supported: true,
118    crate_name: "crossbeam_epoch",
119    srcs: ["src/lib.rs"],
120    edition: "2018",
121    features: [
122        "alloc",
123        "default",
124        "lazy_static",
125        "std",
126    ],
127    rustlibs: [
128        "libcfg_if",
129        "libcrossbeam_utils",
130        "liblazy_static",
131        "libmemoffset",
132        "libscopeguard",
133    ],
134}
135
136// dependent_library ["feature_list"]
137//   autocfg-1.0.1
138//   cfg-if-1.0.0
139//   crossbeam-utils-0.8.3 "lazy_static,std"
140//   getrandom-0.2.2 "std"
141//   lazy_static-1.4.0
142//   libc-0.2.92
143//   memoffset-0.6.3 "default"
144//   ppv-lite86-0.2.10 "simd,std"
145//   rand-0.8.3 "alloc,default,getrandom,libc,rand_chacha,rand_hc,std,std_rng"
146//   rand_chacha-0.3.0 "std"
147//   rand_core-0.6.2 "alloc,getrandom,std"
148//   scopeguard-1.1.0
149