1// This file is generated by cargo2android.py --device --run --features io-util,macros,rt-multi-thread,sync,net,fs,time --tests --patch=patches/Android.bp.patch.
2// Do not modify this file as changes will be overridden on upgrade.
3
4package {
5    default_applicable_licenses: ["external_rust_crates_tokio_license"],
6}
7
8// Added automatically by a large-scale-change
9// See: http://go/android-license-faq
10license {
11    name: "external_rust_crates_tokio_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: "libtokio",
23    host_supported: true,
24    crate_name: "tokio",
25    srcs: ["src/lib.rs"],
26    edition: "2018",
27    features: [
28        "bytes",
29        "fs",
30        "io-util",
31        "libc",
32        "macros",
33        "memchr",
34        "mio",
35        "net",
36        "num_cpus",
37        "rt",
38        "rt-multi-thread",
39        "sync",
40        "time",
41        "tokio-macros",
42    ],
43    cfgs: ["tokio_track_caller"],
44    rustlibs: [
45        "libbytes",
46        "liblibc",
47        "libmemchr",
48        "libmio",
49        "libnum_cpus",
50        "libpin_project_lite",
51    ],
52    proc_macros: ["libtokio_macros"],
53    apex_available: [
54        "//apex_available:platform",
55        "com.android.resolv",
56    ],
57    min_sdk_version: "29",
58}
59
60rust_defaults {
61    name: "tokio_defaults",
62    crate_name: "tokio",
63    test_suites: ["general-tests"],
64    auto_gen_config: true,
65    edition: "2018",
66    features: [
67        "bytes",
68        "fs",
69        "full",
70        "io-util",
71        "libc",
72        "macros",
73        "memchr",
74        "mio",
75        "net",
76        "num_cpus",
77        "rt",
78        "rt-multi-thread",
79        "sync",
80        "time",
81        "tokio-macros",
82    ],
83    cfgs: ["tokio_track_caller"],
84    rustlibs: [
85        "libasync_stream",
86        "libbytes",
87        "libfutures",
88        "liblibc",
89        "libmemchr",
90        "libmio",
91        "libnix",
92        "libnum_cpus",
93        "libpin_project_lite",
94        "librand",
95        "libtokio",
96        "libtokio_stream",
97        "libtokio_test",
98    ],
99    proc_macros: ["libtokio_macros"],
100}
101
102rust_test_host {
103    name: "tokio_host_test_tests_buffered",
104    defaults: ["tokio_defaults"],
105    srcs: ["tests/buffered.rs"],
106    test_options: {
107        unit_test: true,
108    },
109}
110
111rust_test {
112    name: "tokio_device_test_tests_buffered",
113    defaults: ["tokio_defaults"],
114    srcs: ["tests/buffered.rs"],
115}
116
117rust_test_host {
118    name: "tokio_host_test_tests_io_async_read",
119    defaults: ["tokio_defaults"],
120    srcs: ["tests/io_async_read.rs"],
121    test_options: {
122        unit_test: true,
123    },
124}
125
126rust_test {
127    name: "tokio_device_test_tests_io_async_read",
128    defaults: ["tokio_defaults"],
129    srcs: ["tests/io_async_read.rs"],
130}
131
132rust_test_host {
133    name: "tokio_host_test_tests_io_copy_bidirectional",
134    defaults: ["tokio_defaults"],
135    srcs: ["tests/io_copy_bidirectional.rs"],
136    test_options: {
137        unit_test: true,
138    },
139}
140
141rust_test {
142    name: "tokio_device_test_tests_io_copy_bidirectional",
143    defaults: ["tokio_defaults"],
144    srcs: ["tests/io_copy_bidirectional.rs"],
145}
146
147rust_test_host {
148    name: "tokio_host_test_tests_io_lines",
149    defaults: ["tokio_defaults"],
150    srcs: ["tests/io_lines.rs"],
151    test_options: {
152        unit_test: true,
153    },
154}
155
156rust_test {
157    name: "tokio_device_test_tests_io_lines",
158    defaults: ["tokio_defaults"],
159    srcs: ["tests/io_lines.rs"],
160}
161
162rust_test_host {
163    name: "tokio_host_test_tests_io_mem_stream",
164    defaults: ["tokio_defaults"],
165    srcs: ["tests/io_mem_stream.rs"],
166    test_options: {
167        unit_test: true,
168    },
169}
170
171rust_test {
172    name: "tokio_device_test_tests_io_mem_stream",
173    defaults: ["tokio_defaults"],
174    srcs: ["tests/io_mem_stream.rs"],
175}
176
177rust_test_host {
178    name: "tokio_host_test_tests_io_read",
179    defaults: ["tokio_defaults"],
180    srcs: ["tests/io_read.rs"],
181    test_options: {
182        unit_test: true,
183    },
184}
185
186rust_test {
187    name: "tokio_device_test_tests_io_read",
188    defaults: ["tokio_defaults"],
189    srcs: ["tests/io_read.rs"],
190}
191
192rust_test_host {
193    name: "tokio_host_test_tests_io_read_buf",
194    defaults: ["tokio_defaults"],
195    srcs: ["tests/io_read_buf.rs"],
196    test_options: {
197        unit_test: true,
198    },
199}
200
201rust_test {
202    name: "tokio_device_test_tests_io_read_buf",
203    defaults: ["tokio_defaults"],
204    srcs: ["tests/io_read_buf.rs"],
205}
206
207rust_test_host {
208    name: "tokio_host_test_tests_io_read_to_end",
209    defaults: ["tokio_defaults"],
210    srcs: ["tests/io_read_to_end.rs"],
211    test_options: {
212        unit_test: true,
213    },
214}
215
216rust_test {
217    name: "tokio_device_test_tests_io_read_to_end",
218    defaults: ["tokio_defaults"],
219    srcs: ["tests/io_read_to_end.rs"],
220}
221
222rust_test_host {
223    name: "tokio_host_test_tests_io_take",
224    defaults: ["tokio_defaults"],
225    srcs: ["tests/io_take.rs"],
226    test_options: {
227        unit_test: true,
228    },
229}
230
231rust_test {
232    name: "tokio_device_test_tests_io_take",
233    defaults: ["tokio_defaults"],
234    srcs: ["tests/io_take.rs"],
235}
236
237rust_test_host {
238    name: "tokio_host_test_tests_io_write",
239    defaults: ["tokio_defaults"],
240    srcs: ["tests/io_write.rs"],
241    test_options: {
242        unit_test: true,
243    },
244}
245
246rust_test {
247    name: "tokio_device_test_tests_io_write",
248    defaults: ["tokio_defaults"],
249    srcs: ["tests/io_write.rs"],
250}
251
252rust_test_host {
253    name: "tokio_host_test_tests_io_write_all",
254    defaults: ["tokio_defaults"],
255    srcs: ["tests/io_write_all.rs"],
256    test_options: {
257        unit_test: true,
258    },
259}
260
261rust_test {
262    name: "tokio_device_test_tests_io_write_all",
263    defaults: ["tokio_defaults"],
264    srcs: ["tests/io_write_all.rs"],
265}
266
267rust_test_host {
268    name: "tokio_host_test_tests_io_write_buf",
269    defaults: ["tokio_defaults"],
270    srcs: ["tests/io_write_buf.rs"],
271    test_options: {
272        unit_test: true,
273    },
274}
275
276rust_test {
277    name: "tokio_device_test_tests_io_write_buf",
278    defaults: ["tokio_defaults"],
279    srcs: ["tests/io_write_buf.rs"],
280}
281
282rust_test_host {
283    name: "tokio_host_test_tests_io_write_int",
284    defaults: ["tokio_defaults"],
285    srcs: ["tests/io_write_int.rs"],
286    test_options: {
287        unit_test: true,
288    },
289}
290
291rust_test {
292    name: "tokio_device_test_tests_io_write_int",
293    defaults: ["tokio_defaults"],
294    srcs: ["tests/io_write_int.rs"],
295}
296
297rust_test_host {
298    name: "tokio_host_test_tests_macros_join",
299    defaults: ["tokio_defaults"],
300    srcs: ["tests/macros_join.rs"],
301    test_options: {
302        unit_test: true,
303    },
304}
305
306rust_test {
307    name: "tokio_device_test_tests_macros_join",
308    defaults: ["tokio_defaults"],
309    srcs: ["tests/macros_join.rs"],
310}
311
312rust_test_host {
313    name: "tokio_host_test_tests_no_rt",
314    defaults: ["tokio_defaults"],
315    srcs: ["tests/no_rt.rs"],
316    test_options: {
317        unit_test: true,
318    },
319}
320
321rust_test {
322    name: "tokio_device_test_tests_no_rt",
323    defaults: ["tokio_defaults"],
324    srcs: ["tests/no_rt.rs"],
325}
326
327rust_test_host {
328    name: "tokio_host_test_tests_rt_basic",
329    defaults: ["tokio_defaults"],
330    srcs: ["tests/rt_basic.rs"],
331    test_options: {
332        unit_test: true,
333    },
334}
335
336rust_test {
337    name: "tokio_device_test_tests_rt_basic",
338    defaults: ["tokio_defaults"],
339    srcs: ["tests/rt_basic.rs"],
340}
341
342rust_test_host {
343    name: "tokio_host_test_tests_rt_threaded",
344    defaults: ["tokio_defaults"],
345    srcs: ["tests/rt_threaded.rs"],
346    test_options: {
347        unit_test: true,
348    },
349}
350
351rust_test {
352    name: "tokio_device_test_tests_rt_threaded",
353    defaults: ["tokio_defaults"],
354    srcs: ["tests/rt_threaded.rs"],
355}
356
357rust_test_host {
358    name: "tokio_host_test_tests_sync_barrier",
359    defaults: ["tokio_defaults"],
360    srcs: ["tests/sync_barrier.rs"],
361    test_options: {
362        unit_test: true,
363    },
364}
365
366rust_test {
367    name: "tokio_device_test_tests_sync_barrier",
368    defaults: ["tokio_defaults"],
369    srcs: ["tests/sync_barrier.rs"],
370}
371
372rust_test_host {
373    name: "tokio_host_test_tests_sync_broadcast",
374    defaults: ["tokio_defaults"],
375    srcs: ["tests/sync_broadcast.rs"],
376    test_options: {
377        unit_test: true,
378    },
379}
380
381rust_test {
382    name: "tokio_device_test_tests_sync_broadcast",
383    defaults: ["tokio_defaults"],
384    srcs: ["tests/sync_broadcast.rs"],
385}
386
387rust_test_host {
388    name: "tokio_host_test_tests_sync_errors",
389    defaults: ["tokio_defaults"],
390    srcs: ["tests/sync_errors.rs"],
391    test_options: {
392        unit_test: true,
393    },
394}
395
396rust_test {
397    name: "tokio_device_test_tests_sync_errors",
398    defaults: ["tokio_defaults"],
399    srcs: ["tests/sync_errors.rs"],
400}
401
402rust_test_host {
403    name: "tokio_host_test_tests_sync_mpsc",
404    defaults: ["tokio_defaults"],
405    srcs: ["tests/sync_mpsc.rs"],
406    test_options: {
407        unit_test: true,
408    },
409}
410
411rust_test {
412    name: "tokio_device_test_tests_sync_mpsc",
413    defaults: ["tokio_defaults"],
414    srcs: ["tests/sync_mpsc.rs"],
415}
416
417rust_test_host {
418    name: "tokio_host_test_tests_sync_mutex_owned",
419    defaults: ["tokio_defaults"],
420    srcs: ["tests/sync_mutex_owned.rs"],
421    test_options: {
422        unit_test: true,
423    },
424}
425
426rust_test {
427    name: "tokio_device_test_tests_sync_mutex_owned",
428    defaults: ["tokio_defaults"],
429    srcs: ["tests/sync_mutex_owned.rs"],
430}
431
432rust_test_host {
433    name: "tokio_host_test_tests_sync_rwlock",
434    defaults: ["tokio_defaults"],
435    srcs: ["tests/sync_rwlock.rs"],
436    test_options: {
437        unit_test: true,
438    },
439}
440
441rust_test {
442    name: "tokio_device_test_tests_sync_rwlock",
443    defaults: ["tokio_defaults"],
444    srcs: ["tests/sync_rwlock.rs"],
445}
446
447rust_test_host {
448    name: "tokio_host_test_tests_sync_watch",
449    defaults: ["tokio_defaults"],
450    srcs: ["tests/sync_watch.rs"],
451    test_options: {
452        unit_test: true,
453    },
454}
455
456rust_test {
457    name: "tokio_device_test_tests_sync_watch",
458    defaults: ["tokio_defaults"],
459    srcs: ["tests/sync_watch.rs"],
460}
461
462rust_test_host {
463    name: "tokio_host_test_tests_task_local",
464    defaults: ["tokio_defaults"],
465    srcs: ["tests/task_local.rs"],
466    test_options: {
467        unit_test: true,
468    },
469}
470
471rust_test {
472    name: "tokio_device_test_tests_task_local",
473    defaults: ["tokio_defaults"],
474    srcs: ["tests/task_local.rs"],
475}
476
477rust_test_host {
478    name: "tokio_host_test_tests_task_local_set",
479    defaults: ["tokio_defaults"],
480    srcs: ["tests/task_local_set.rs"],
481    test_options: {
482        unit_test: true,
483    },
484}
485
486rust_test {
487    name: "tokio_device_test_tests_task_local_set",
488    defaults: ["tokio_defaults"],
489    srcs: ["tests/task_local_set.rs"],
490}
491
492rust_test_host {
493    name: "tokio_host_test_tests_tcp_accept",
494    defaults: ["tokio_defaults"],
495    srcs: ["tests/tcp_accept.rs"],
496    test_options: {
497        unit_test: true,
498    },
499}
500
501rust_test {
502    name: "tokio_device_test_tests_tcp_accept",
503    defaults: ["tokio_defaults"],
504    srcs: ["tests/tcp_accept.rs"],
505}
506
507rust_test_host {
508    name: "tokio_host_test_tests_tcp_echo",
509    defaults: ["tokio_defaults"],
510    srcs: ["tests/tcp_echo.rs"],
511    test_options: {
512        unit_test: true,
513    },
514}
515
516rust_test {
517    name: "tokio_device_test_tests_tcp_echo",
518    defaults: ["tokio_defaults"],
519    srcs: ["tests/tcp_echo.rs"],
520}
521
522rust_test_host {
523    name: "tokio_host_test_tests_tcp_into_std",
524    defaults: ["tokio_defaults"],
525    srcs: ["tests/tcp_into_std.rs"],
526    test_options: {
527        unit_test: true,
528    },
529}
530
531rust_test {
532    name: "tokio_device_test_tests_tcp_into_std",
533    defaults: ["tokio_defaults"],
534    srcs: ["tests/tcp_into_std.rs"],
535}
536
537rust_test_host {
538    name: "tokio_host_test_tests_tcp_shutdown",
539    defaults: ["tokio_defaults"],
540    srcs: ["tests/tcp_shutdown.rs"],
541    test_options: {
542        unit_test: true,
543    },
544}
545
546rust_test {
547    name: "tokio_device_test_tests_tcp_shutdown",
548    defaults: ["tokio_defaults"],
549    srcs: ["tests/tcp_shutdown.rs"],
550}
551
552rust_test_host {
553    name: "tokio_host_test_tests_time_rt",
554    defaults: ["tokio_defaults"],
555    srcs: ["tests/time_rt.rs"],
556    test_options: {
557        unit_test: true,
558    },
559}
560
561rust_test {
562    name: "tokio_device_test_tests_time_rt",
563    defaults: ["tokio_defaults"],
564    srcs: ["tests/time_rt.rs"],
565}
566
567rust_test_host {
568    name: "tokio_host_test_tests_uds_split",
569    defaults: ["tokio_defaults"],
570    srcs: ["tests/uds_split.rs"],
571    test_options: {
572        unit_test: true,
573    },
574}
575
576rust_test {
577    name: "tokio_device_test_tests_uds_split",
578    defaults: ["tokio_defaults"],
579    srcs: ["tests/uds_split.rs"],
580}
581