blob: 5f1700798746d3ba9607dfd5ed802cbf51502b08 [file] [log] [blame]
Jason Macnak981e62f2021-10-08 12:12:49 -07001// This file is generated by cargo2android.py --config cargo2android.json.
Jakub Kotur00ae16c2020-12-22 09:58:47 +01002// Do not modify this file as changes will be overridden on upgrade.
3
Bob Badour3122e0b2021-03-17 12:53:03 -07004package {
5 default_applicable_licenses: [
6 "external_rust_crates_crossbeam-utils_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-utils_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
Joel Galensonfa8002d2021-11-29 14:03:28 -080042rust_test {
43 name: "crossbeam-utils_test_src_lib",
44 host_supported: true,
Jakub Kotur3276f602021-03-18 15:00:41 +010045 crate_name: "crossbeam_utils",
Jason Macnak981e62f2021-10-08 12:12:49 -070046 cargo_env_compat: true,
David LeGare66bcc0c2022-03-01 19:05:04 +000047 cargo_pkg_version: "0.8.7",
Joel Galensonfa8002d2021-11-29 14:03:28 -080048 srcs: ["src/lib.rs"],
Jakub Kotur3276f602021-03-18 15:00:41 +010049 test_suites: ["general-tests"],
50 auto_gen_config: true,
Joel Galensonfa8002d2021-11-29 14:03:28 -080051 test_options: {
52 unit_test: true,
53 },
Jakub Kotur3276f602021-03-18 15:00:41 +010054 edition: "2018",
55 features: [
56 "default",
57 "lazy_static",
58 "std",
59 ],
Jakub Kotur3276f602021-03-18 15:00:41 +010060 rustlibs: [
61 "libcfg_if",
62 "liblazy_static",
63 "librand",
64 ],
David LeGare66bcc0c2022-03-01 19:05:04 +000065 proc_macros: ["librustversion"],
Jakub Kotur3276f602021-03-18 15:00:41 +010066}
67
Jakub Kotur3276f602021-03-18 15:00:41 +010068rust_defaults {
Joel Galensonfa8002d2021-11-29 14:03:28 -080069 name: "crossbeam-utils_test_defaults",
Jakub Kotur3276f602021-03-18 15:00:41 +010070 crate_name: "crossbeam_utils",
Jason Macnak981e62f2021-10-08 12:12:49 -070071 cargo_env_compat: true,
David LeGare66bcc0c2022-03-01 19:05:04 +000072 cargo_pkg_version: "0.8.7",
Jakub Kotur3276f602021-03-18 15:00:41 +010073 test_suites: ["general-tests"],
74 auto_gen_config: true,
75 edition: "2018",
76 features: [
77 "default",
78 "lazy_static",
79 "std",
80 ],
Jakub Kotur3276f602021-03-18 15:00:41 +010081 rustlibs: [
82 "libcfg_if",
83 "libcrossbeam_utils",
84 "liblazy_static",
85 "librand",
86 ],
David LeGare66bcc0c2022-03-01 19:05:04 +000087 proc_macros: ["librustversion"],
Jakub Kotur3276f602021-03-18 15:00:41 +010088}
89
Joel Galensonfa8002d2021-11-29 14:03:28 -080090rust_test {
91 name: "crossbeam-utils_test_tests_atomic_cell",
92 defaults: ["crossbeam-utils_test_defaults"],
93 host_supported: true,
Jakub Kotur3276f602021-03-18 15:00:41 +010094 srcs: ["tests/atomic_cell.rs"],
95 test_options: {
96 unit_test: true,
97 },
98}
99
100rust_test {
Joel Galensonfa8002d2021-11-29 14:03:28 -0800101 name: "crossbeam-utils_test_tests_cache_padded",
102 defaults: ["crossbeam-utils_test_defaults"],
103 host_supported: true,
Jakub Kotur3276f602021-03-18 15:00:41 +0100104 srcs: ["tests/cache_padded.rs"],
105 test_options: {
106 unit_test: true,
107 },
108}
109
110rust_test {
Joel Galensonfa8002d2021-11-29 14:03:28 -0800111 name: "crossbeam-utils_test_tests_parker",
112 defaults: ["crossbeam-utils_test_defaults"],
113 host_supported: true,
Jakub Kotur3276f602021-03-18 15:00:41 +0100114 srcs: ["tests/parker.rs"],
115 test_options: {
116 unit_test: true,
117 },
118}
119
120rust_test {
Joel Galensonfa8002d2021-11-29 14:03:28 -0800121 name: "crossbeam-utils_test_tests_sharded_lock",
122 defaults: ["crossbeam-utils_test_defaults"],
123 host_supported: true,
Jakub Kotur3276f602021-03-18 15:00:41 +0100124 srcs: ["tests/sharded_lock.rs"],
125 test_options: {
126 unit_test: true,
127 },
128}
129
130rust_test {
Joel Galensonfa8002d2021-11-29 14:03:28 -0800131 name: "crossbeam-utils_test_tests_thread",
132 defaults: ["crossbeam-utils_test_defaults"],
133 host_supported: true,
Jakub Kotur3276f602021-03-18 15:00:41 +0100134 srcs: ["tests/thread.rs"],
135 test_options: {
136 unit_test: true,
137 },
138}
139
140rust_test {
Joel Galensonfa8002d2021-11-29 14:03:28 -0800141 name: "crossbeam-utils_test_tests_wait_group",
142 defaults: ["crossbeam-utils_test_defaults"],
143 host_supported: true,
Jakub Kotur3276f602021-03-18 15:00:41 +0100144 srcs: ["tests/wait_group.rs"],
145 test_options: {
146 unit_test: true,
147 },
148}
149
Jakub Kotur00ae16c2020-12-22 09:58:47 +0100150rust_library {
151 name: "libcrossbeam_utils",
152 host_supported: true,
153 crate_name: "crossbeam_utils",
Jason Macnak981e62f2021-10-08 12:12:49 -0700154 cargo_env_compat: true,
David LeGare66bcc0c2022-03-01 19:05:04 +0000155 cargo_pkg_version: "0.8.7",
Jakub Kotur00ae16c2020-12-22 09:58:47 +0100156 srcs: ["src/lib.rs"],
157 edition: "2018",
158 features: [
159 "default",
160 "lazy_static",
161 "std",
162 ],
Jakub Kotur00ae16c2020-12-22 09:58:47 +0100163 rustlibs: [
164 "libcfg_if",
165 "liblazy_static",
166 ],
Jason Macnak981e62f2021-10-08 12:12:49 -0700167 apex_available: [
168 "//apex_available:platform",
169 "com.android.virt",
170 ],
Jakub Kotur00ae16c2020-12-22 09:58:47 +0100171}