blob: 4fe3543bb3f4756039c7dc08f55dd0ae82a72809 [file] [log] [blame]
Jooyung Hanb6bc1c02021-07-02 08:04:35 +09001// This file is generated by cargo2android.py --config cargo2android.json.
Jakub Kotur06533c92021-02-09 11:59:50 +01002// Do not modify this file as changes will be overridden on upgrade.
Chih-Hung Hsieh415d0112020-04-17 21:14:41 -07003
Bob Badoura71335a2021-03-17 12:54:17 -07004package {
5 default_applicable_licenses: ["external_rust_crates_regex_license"],
6}
7
8// Added automatically by a large-scale-change that took the approach of
9// 'apply every license found to every target'. While this makes sure we respect
10// every license restriction, it may not be entirely correct.
11//
12// e.g. GPL in an MIT project might only apply to the contrib/ directory.
13//
14// Please consider splitting the single license below into multiple licenses,
15// taking care not to lose any license_kind information, and overriding the
16// default license using the 'licenses: [...]' property on targets as needed.
17//
18// For unused files, consider creating a 'fileGroup' with "//visibility:private"
19// to attach the license to, and including a comment whether the files may be
20// used in the current project.
21//
22// large-scale-change included anything that looked like it might be a license
23// text as a license_text. e.g. LICENSE, NOTICE, COPYING etc.
24//
25// Please consider removing redundant or irrelevant files from 'license_text:'.
26// See: http://go/android-license-faq
27license {
28 name: "external_rust_crates_regex_license",
29 visibility: [":__subpackages__"],
30 license_kinds: [
31 "SPDX-license-identifier-Apache-2.0",
32 "SPDX-license-identifier-MIT",
33 "SPDX-license-identifier-Unicode-DFS",
34 ],
35 license_text: [
36 "LICENSE-APACHE",
37 "LICENSE-MIT",
38 ],
39}
40
Jakub Kotur06533c92021-02-09 11:59:50 +010041rust_library {
Chih-Hung Hsieh415d0112020-04-17 21:14:41 -070042 name: "libregex",
Jakub Kotur06533c92021-02-09 11:59:50 +010043 host_supported: true,
Chih-Hung Hsieh415d0112020-04-17 21:14:41 -070044 crate_name: "regex",
Jeff Vander Stoep5b27bad2021-10-28 11:28:32 +020045 cargo_env_compat: true,
46 cargo_pkg_version: "1.5.4",
Chih-Hung Hsieh415d0112020-04-17 21:14:41 -070047 srcs: ["src/lib.rs"],
Joel Galenson38748082021-05-19 16:51:51 -070048 edition: "2018",
Chih-Hung Hsieh415d0112020-04-17 21:14:41 -070049 features: [
50 "aho-corasick",
51 "default",
52 "memchr",
53 "perf",
54 "perf-cache",
55 "perf-dfa",
56 "perf-inline",
57 "perf-literal",
58 "std",
Chih-Hung Hsieh415d0112020-04-17 21:14:41 -070059 "unicode",
60 "unicode-age",
61 "unicode-bool",
62 "unicode-case",
63 "unicode-gencat",
64 "unicode-perl",
65 "unicode-script",
66 "unicode-segment",
67 ],
Matthew Maurere6b37cf2020-07-06 13:34:19 -070068 rustlibs: [
Chih-Hung Hsieh415d0112020-04-17 21:14:41 -070069 "libaho_corasick",
70 "libmemchr",
71 "libregex_syntax",
Chih-Hung Hsieh415d0112020-04-17 21:14:41 -070072 ],
Jooyung Hanb6bc1c02021-07-02 08:04:35 +090073 apex_available: [
74 "//apex_available:platform",
Alan Stokesdc2fe9f2022-01-05 17:52:41 +000075 "com.android.compos",
Jooyung Hanb6bc1c02021-07-02 08:04:35 +090076 "com.android.virt",
77 ],
Chih-Hung Hsieh415d0112020-04-17 21:14:41 -070078}
79
Joel Galensonb45005e2021-11-29 14:05:03 -080080rust_test {
81 name: "regex_test_src_lib",
82 host_supported: true,
Jeff Vander Stoep5b27bad2021-10-28 11:28:32 +020083 crate_name: "regex",
Joel Galensonb45005e2021-11-29 14:05:03 -080084 cargo_env_compat: true,
85 cargo_pkg_version: "1.5.4",
Jeff Vander Stoep5b27bad2021-10-28 11:28:32 +020086 srcs: ["src/lib.rs"],
Jeff Vander Stoep5b27bad2021-10-28 11:28:32 +020087 test_suites: ["general-tests"],
88 auto_gen_config: true,
Joel Galensonb45005e2021-11-29 14:05:03 -080089 test_options: {
90 unit_test: true,
91 },
Jeff Vander Stoep5b27bad2021-10-28 11:28:32 +020092 edition: "2018",
93 features: [
94 "aho-corasick",
95 "default",
96 "memchr",
97 "perf",
98 "perf-cache",
99 "perf-dfa",
100 "perf-inline",
101 "perf-literal",
102 "std",
103 "unicode",
104 "unicode-age",
105 "unicode-bool",
106 "unicode-case",
107 "unicode-gencat",
108 "unicode-perl",
109 "unicode-script",
110 "unicode-segment",
111 ],
112 rustlibs: [
113 "libaho_corasick",
114 "liblazy_static",
115 "libmemchr",
116 "libquickcheck",
117 "librand",
118 "libregex_syntax",
119 ],
120}
121
Jeff Vander Stoep5b27bad2021-10-28 11:28:32 +0200122rust_test {
Joel Galensonb45005e2021-11-29 14:05:03 -0800123 name: "regex_test_tests_test_backtrack",
124 host_supported: true,
Jeff Vander Stoep5b27bad2021-10-28 11:28:32 +0200125 crate_name: "backtrack",
Joel Galensonb45005e2021-11-29 14:05:03 -0800126 cargo_env_compat: true,
127 cargo_pkg_version: "1.5.4",
Jeff Vander Stoep5b27bad2021-10-28 11:28:32 +0200128 srcs: ["tests/test_backtrack.rs"],
Jeff Vander Stoep5b27bad2021-10-28 11:28:32 +0200129 test_suites: ["general-tests"],
130 auto_gen_config: true,
Joel Galensonb45005e2021-11-29 14:05:03 -0800131 test_options: {
132 unit_test: true,
133 },
Jeff Vander Stoep5b27bad2021-10-28 11:28:32 +0200134 edition: "2018",
135 features: [
136 "aho-corasick",
137 "default",
138 "memchr",
139 "perf",
140 "perf-cache",
141 "perf-dfa",
142 "perf-inline",
143 "perf-literal",
144 "std",
145 "unicode",
146 "unicode-age",
147 "unicode-bool",
148 "unicode-case",
149 "unicode-gencat",
150 "unicode-perl",
151 "unicode-script",
152 "unicode-segment",
153 ],
154 rustlibs: [
155 "libaho_corasick",
156 "liblazy_static",
157 "libmemchr",
158 "libquickcheck",
159 "librand",
160 "libregex",
161 "libregex_syntax",
162 ],
163}
164
Jeff Vander Stoep5b27bad2021-10-28 11:28:32 +0200165rust_test {
Joel Galensonb45005e2021-11-29 14:05:03 -0800166 name: "regex_test_tests_test_backtrack_bytes",
167 host_supported: true,
Jeff Vander Stoep5b27bad2021-10-28 11:28:32 +0200168 crate_name: "backtrack_bytes",
Joel Galensonb45005e2021-11-29 14:05:03 -0800169 cargo_env_compat: true,
170 cargo_pkg_version: "1.5.4",
Jeff Vander Stoep5b27bad2021-10-28 11:28:32 +0200171 srcs: ["tests/test_backtrack_bytes.rs"],
Jeff Vander Stoep5b27bad2021-10-28 11:28:32 +0200172 test_suites: ["general-tests"],
173 auto_gen_config: true,
Joel Galensonb45005e2021-11-29 14:05:03 -0800174 test_options: {
175 unit_test: true,
176 },
Jeff Vander Stoep5b27bad2021-10-28 11:28:32 +0200177 edition: "2018",
178 features: [
179 "aho-corasick",
180 "default",
181 "memchr",
182 "perf",
183 "perf-cache",
184 "perf-dfa",
185 "perf-inline",
186 "perf-literal",
187 "std",
188 "unicode",
189 "unicode-age",
190 "unicode-bool",
191 "unicode-case",
192 "unicode-gencat",
193 "unicode-perl",
194 "unicode-script",
195 "unicode-segment",
196 ],
197 rustlibs: [
198 "libaho_corasick",
199 "liblazy_static",
200 "libmemchr",
201 "libquickcheck",
202 "librand",
203 "libregex",
204 "libregex_syntax",
205 ],
206}
207
Jeff Vander Stoep5b27bad2021-10-28 11:28:32 +0200208rust_test {
Joel Galensonb45005e2021-11-29 14:05:03 -0800209 name: "regex_test_tests_test_backtrack_utf8bytes",
210 host_supported: true,
Jeff Vander Stoep5b27bad2021-10-28 11:28:32 +0200211 crate_name: "backtrack_utf8bytes",
Joel Galensonb45005e2021-11-29 14:05:03 -0800212 cargo_env_compat: true,
213 cargo_pkg_version: "1.5.4",
Jeff Vander Stoep5b27bad2021-10-28 11:28:32 +0200214 srcs: ["tests/test_backtrack_utf8bytes.rs"],
Jeff Vander Stoep5b27bad2021-10-28 11:28:32 +0200215 test_suites: ["general-tests"],
216 auto_gen_config: true,
Joel Galensonb45005e2021-11-29 14:05:03 -0800217 test_options: {
218 unit_test: true,
219 },
Jeff Vander Stoep5b27bad2021-10-28 11:28:32 +0200220 edition: "2018",
221 features: [
222 "aho-corasick",
223 "default",
224 "memchr",
225 "perf",
226 "perf-cache",
227 "perf-dfa",
228 "perf-inline",
229 "perf-literal",
230 "std",
231 "unicode",
232 "unicode-age",
233 "unicode-bool",
234 "unicode-case",
235 "unicode-gencat",
236 "unicode-perl",
237 "unicode-script",
238 "unicode-segment",
239 ],
240 rustlibs: [
241 "libaho_corasick",
242 "liblazy_static",
243 "libmemchr",
244 "libquickcheck",
245 "librand",
246 "libregex",
247 "libregex_syntax",
248 ],
249}
250
Jeff Vander Stoep5b27bad2021-10-28 11:28:32 +0200251rust_test {
Joel Galensonb45005e2021-11-29 14:05:03 -0800252 name: "regex_test_tests_test_crates_regex",
253 host_supported: true,
Jeff Vander Stoep5b27bad2021-10-28 11:28:32 +0200254 crate_name: "crates_regex",
Joel Galensonb45005e2021-11-29 14:05:03 -0800255 cargo_env_compat: true,
256 cargo_pkg_version: "1.5.4",
Jeff Vander Stoep5b27bad2021-10-28 11:28:32 +0200257 srcs: ["tests/test_crates_regex.rs"],
Jeff Vander Stoep5b27bad2021-10-28 11:28:32 +0200258 test_suites: ["general-tests"],
259 auto_gen_config: true,
Joel Galensonb45005e2021-11-29 14:05:03 -0800260 test_options: {
261 unit_test: true,
262 },
Jeff Vander Stoep5b27bad2021-10-28 11:28:32 +0200263 edition: "2018",
264 features: [
265 "aho-corasick",
266 "default",
267 "memchr",
268 "perf",
269 "perf-cache",
270 "perf-dfa",
271 "perf-inline",
272 "perf-literal",
273 "std",
274 "unicode",
275 "unicode-age",
276 "unicode-bool",
277 "unicode-case",
278 "unicode-gencat",
279 "unicode-perl",
280 "unicode-script",
281 "unicode-segment",
282 ],
283 rustlibs: [
284 "libaho_corasick",
285 "liblazy_static",
286 "libmemchr",
287 "libquickcheck",
288 "librand",
289 "libregex",
290 "libregex_syntax",
291 ],
292}
293
Jeff Vander Stoep5b27bad2021-10-28 11:28:32 +0200294rust_test {
Joel Galensonb45005e2021-11-29 14:05:03 -0800295 name: "regex_test_tests_test_default",
296 host_supported: true,
Jeff Vander Stoep5b27bad2021-10-28 11:28:32 +0200297 crate_name: "default",
Joel Galensonb45005e2021-11-29 14:05:03 -0800298 cargo_env_compat: true,
299 cargo_pkg_version: "1.5.4",
Jeff Vander Stoep5b27bad2021-10-28 11:28:32 +0200300 srcs: ["tests/test_default.rs"],
Jeff Vander Stoep5b27bad2021-10-28 11:28:32 +0200301 test_suites: ["general-tests"],
302 auto_gen_config: true,
Joel Galensonb45005e2021-11-29 14:05:03 -0800303 test_options: {
304 unit_test: true,
305 },
Jeff Vander Stoep5b27bad2021-10-28 11:28:32 +0200306 edition: "2018",
307 features: [
308 "aho-corasick",
309 "default",
310 "memchr",
311 "perf",
312 "perf-cache",
313 "perf-dfa",
314 "perf-inline",
315 "perf-literal",
316 "std",
317 "unicode",
318 "unicode-age",
319 "unicode-bool",
320 "unicode-case",
321 "unicode-gencat",
322 "unicode-perl",
323 "unicode-script",
324 "unicode-segment",
325 ],
326 rustlibs: [
327 "libaho_corasick",
328 "liblazy_static",
329 "libmemchr",
330 "libquickcheck",
331 "librand",
332 "libregex",
333 "libregex_syntax",
334 ],
335}
336
Jeff Vander Stoep5b27bad2021-10-28 11:28:32 +0200337rust_test {
Joel Galensonb45005e2021-11-29 14:05:03 -0800338 name: "regex_test_tests_test_default_bytes",
339 host_supported: true,
Jeff Vander Stoep5b27bad2021-10-28 11:28:32 +0200340 crate_name: "default_bytes",
Joel Galensonb45005e2021-11-29 14:05:03 -0800341 cargo_env_compat: true,
342 cargo_pkg_version: "1.5.4",
Jeff Vander Stoep5b27bad2021-10-28 11:28:32 +0200343 srcs: ["tests/test_default_bytes.rs"],
Jeff Vander Stoep5b27bad2021-10-28 11:28:32 +0200344 test_suites: ["general-tests"],
345 auto_gen_config: true,
Joel Galensonb45005e2021-11-29 14:05:03 -0800346 test_options: {
347 unit_test: true,
348 },
Jeff Vander Stoep5b27bad2021-10-28 11:28:32 +0200349 edition: "2018",
350 features: [
351 "aho-corasick",
352 "default",
353 "memchr",
354 "perf",
355 "perf-cache",
356 "perf-dfa",
357 "perf-inline",
358 "perf-literal",
359 "std",
360 "unicode",
361 "unicode-age",
362 "unicode-bool",
363 "unicode-case",
364 "unicode-gencat",
365 "unicode-perl",
366 "unicode-script",
367 "unicode-segment",
368 ],
369 rustlibs: [
370 "libaho_corasick",
371 "liblazy_static",
372 "libmemchr",
373 "libquickcheck",
374 "librand",
375 "libregex",
376 "libregex_syntax",
377 ],
378}
379
Jeff Vander Stoep5b27bad2021-10-28 11:28:32 +0200380rust_test {
Joel Galensonb45005e2021-11-29 14:05:03 -0800381 name: "regex_test_tests_test_nfa",
382 host_supported: true,
Jeff Vander Stoep5b27bad2021-10-28 11:28:32 +0200383 crate_name: "nfa",
Joel Galensonb45005e2021-11-29 14:05:03 -0800384 cargo_env_compat: true,
385 cargo_pkg_version: "1.5.4",
Jeff Vander Stoep5b27bad2021-10-28 11:28:32 +0200386 srcs: ["tests/test_nfa.rs"],
Jeff Vander Stoep5b27bad2021-10-28 11:28:32 +0200387 test_suites: ["general-tests"],
388 auto_gen_config: true,
Joel Galensonb45005e2021-11-29 14:05:03 -0800389 test_options: {
390 unit_test: true,
391 },
Jeff Vander Stoep5b27bad2021-10-28 11:28:32 +0200392 edition: "2018",
393 features: [
394 "aho-corasick",
395 "default",
396 "memchr",
397 "perf",
398 "perf-cache",
399 "perf-dfa",
400 "perf-inline",
401 "perf-literal",
402 "std",
403 "unicode",
404 "unicode-age",
405 "unicode-bool",
406 "unicode-case",
407 "unicode-gencat",
408 "unicode-perl",
409 "unicode-script",
410 "unicode-segment",
411 ],
412 rustlibs: [
413 "libaho_corasick",
414 "liblazy_static",
415 "libmemchr",
416 "libquickcheck",
417 "librand",
418 "libregex",
419 "libregex_syntax",
420 ],
421}
422
Jeff Vander Stoep5b27bad2021-10-28 11:28:32 +0200423rust_test {
Joel Galensonb45005e2021-11-29 14:05:03 -0800424 name: "regex_test_tests_test_nfa_bytes",
425 host_supported: true,
Jeff Vander Stoep5b27bad2021-10-28 11:28:32 +0200426 crate_name: "nfa_bytes",
Joel Galensonb45005e2021-11-29 14:05:03 -0800427 cargo_env_compat: true,
428 cargo_pkg_version: "1.5.4",
Jeff Vander Stoep5b27bad2021-10-28 11:28:32 +0200429 srcs: ["tests/test_nfa_bytes.rs"],
Jeff Vander Stoep5b27bad2021-10-28 11:28:32 +0200430 test_suites: ["general-tests"],
431 auto_gen_config: true,
Joel Galensonb45005e2021-11-29 14:05:03 -0800432 test_options: {
433 unit_test: true,
434 },
Jeff Vander Stoep5b27bad2021-10-28 11:28:32 +0200435 edition: "2018",
436 features: [
437 "aho-corasick",
438 "default",
439 "memchr",
440 "perf",
441 "perf-cache",
442 "perf-dfa",
443 "perf-inline",
444 "perf-literal",
445 "std",
446 "unicode",
447 "unicode-age",
448 "unicode-bool",
449 "unicode-case",
450 "unicode-gencat",
451 "unicode-perl",
452 "unicode-script",
453 "unicode-segment",
454 ],
455 rustlibs: [
456 "libaho_corasick",
457 "liblazy_static",
458 "libmemchr",
459 "libquickcheck",
460 "librand",
461 "libregex",
462 "libregex_syntax",
463 ],
464}
465
Jeff Vander Stoep5b27bad2021-10-28 11:28:32 +0200466rust_test {
Joel Galensonb45005e2021-11-29 14:05:03 -0800467 name: "regex_test_tests_test_nfa_utf8bytes",
468 host_supported: true,
Jeff Vander Stoep5b27bad2021-10-28 11:28:32 +0200469 crate_name: "nfa_utf8bytes",
Jeff Vander Stoep5b27bad2021-10-28 11:28:32 +0200470 cargo_env_compat: true,
471 cargo_pkg_version: "1.5.4",
Joel Galensonb45005e2021-11-29 14:05:03 -0800472 srcs: ["tests/test_nfa_utf8bytes.rs"],
Jeff Vander Stoep5b27bad2021-10-28 11:28:32 +0200473 test_suites: ["general-tests"],
474 auto_gen_config: true,
Joel Galensonb45005e2021-11-29 14:05:03 -0800475 test_options: {
476 unit_test: true,
477 },
Jeff Vander Stoep5b27bad2021-10-28 11:28:32 +0200478 edition: "2018",
479 features: [
480 "aho-corasick",
481 "default",
482 "memchr",
483 "perf",
484 "perf-cache",
485 "perf-dfa",
486 "perf-inline",
487 "perf-literal",
488 "std",
489 "unicode",
490 "unicode-age",
491 "unicode-bool",
492 "unicode-case",
493 "unicode-gencat",
494 "unicode-perl",
495 "unicode-script",
496 "unicode-segment",
497 ],
498 rustlibs: [
499 "libaho_corasick",
500 "liblazy_static",
501 "libmemchr",
502 "libquickcheck",
503 "librand",
504 "libregex",
505 "libregex_syntax",
506 ],
507}