blob: c61b680f5c2f5215e756be3b30c64f7e76b1d612 [file] [log] [blame]
Joel Galenson4fa481b2021-04-27 11:06:05 -07001// This file is generated by cargo2android.py --config cargo2android.json.
Joel Galenson1fdff8f2021-04-01 16:17:54 -07002// Do not modify this file as changes will be overridden on upgrade.
Chih-Hung Hsieh99abb8c2020-07-16 16:27:50 -07003
Bob Badour90bdae92021-02-12 17:31:39 -08004package {
5 default_applicable_licenses: ["external_rust_crates_futures-util_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_futures-util_license",
29 visibility: [":__subpackages__"],
30 license_kinds: [
31 "SPDX-license-identifier-Apache-2.0",
32 "SPDX-license-identifier-MIT",
33 ],
34 license_text: [
35 "LICENSE-APACHE",
36 "LICENSE-MIT",
37 ],
38}
39
Chih-Hung Hsieh99abb8c2020-07-16 16:27:50 -070040rust_defaults {
41 name: "futures-util_defaults",
42 crate_name: "futures_util",
Chih-Hung Hsieh99abb8c2020-07-16 16:27:50 -070043 srcs: ["src/lib.rs"],
44 test_suites: ["general-tests"],
45 auto_gen_config: true,
46 edition: "2018",
47 features: [
48 "alloc",
49 "async-await",
50 "async-await-macro",
51 "channel",
52 "default",
53 "futures-channel",
54 "futures-io",
55 "futures-macro",
56 "futures-sink",
57 "io",
58 "memchr",
59 "proc-macro-hack",
60 "proc-macro-nested",
61 "sink",
62 "slab",
63 "std",
64 ],
65 rustlibs: [
66 "libfutures_channel",
67 "libfutures_core",
68 "libfutures_io",
69 "libfutures_sink",
70 "libfutures_task",
71 "libmemchr",
Haibo Huang5bf87962021-02-09 17:18:40 -080072 "libpin_project_lite",
Chih-Hung Hsieh99abb8c2020-07-16 16:27:50 -070073 "libpin_utils",
74 "libproc_macro_nested",
75 "libslab",
Haibo Huang5bf87962021-02-09 17:18:40 -080076 "libtokio",
Chih-Hung Hsieh99abb8c2020-07-16 16:27:50 -070077 ],
78 proc_macros: [
79 "libfutures_macro",
80 "libproc_macro_hack",
81 ],
82}
83
84rust_test_host {
85 name: "futures-util_host_test_src_lib",
86 defaults: ["futures-util_defaults"],
Haibo Huang5bf87962021-02-09 17:18:40 -080087 test_options: {
88 unit_test: true,
89 },
Chih-Hung Hsieh99abb8c2020-07-16 16:27:50 -070090}
91
92rust_test {
93 name: "futures-util_device_test_src_lib",
94 defaults: ["futures-util_defaults"],
95}
Jason Macnakc417d3b2020-04-06 10:30:28 -070096
Matthew Maurer68718732020-07-06 13:20:29 -070097rust_library {
Jason Macnakc417d3b2020-04-06 10:30:28 -070098 name: "libfutures_util",
Andrew Walbran8c390192020-06-09 14:27:31 +010099 host_supported: true,
Jason Macnakc417d3b2020-04-06 10:30:28 -0700100 crate_name: "futures_util",
101 srcs: ["src/lib.rs"],
102 edition: "2018",
103 features: [
104 "alloc",
105 "async-await",
106 "async-await-macro",
107 "channel",
108 "default",
Haibo Huang52627c82020-05-08 19:26:17 -0700109 "futures-channel",
110 "futures-io",
Jason Macnakc417d3b2020-04-06 10:30:28 -0700111 "futures-macro",
Haibo Huang52627c82020-05-08 19:26:17 -0700112 "futures-sink",
Jason Macnakc417d3b2020-04-06 10:30:28 -0700113 "io",
Haibo Huang52627c82020-05-08 19:26:17 -0700114 "memchr",
Jason Macnakc417d3b2020-04-06 10:30:28 -0700115 "proc-macro-hack",
116 "proc-macro-nested",
117 "sink",
118 "slab",
119 "std",
120 ],
Matthew Maurer68718732020-07-06 13:20:29 -0700121 rustlibs: [
Jason Macnakc417d3b2020-04-06 10:30:28 -0700122 "libfutures_channel",
123 "libfutures_core",
124 "libfutures_io",
125 "libfutures_sink",
126 "libfutures_task",
127 "libmemchr",
Haibo Huang5bf87962021-02-09 17:18:40 -0800128 "libpin_project_lite",
Jason Macnakc417d3b2020-04-06 10:30:28 -0700129 "libpin_utils",
130 "libproc_macro_nested",
131 "libslab",
132 ],
133 proc_macros: [
134 "libfutures_macro",
135 "libproc_macro_hack",
136 ],
Jiyong Parkeb238162020-12-07 15:47:40 +0900137 apex_available: [
138 "//apex_available:platform",
139 "com.android.virt",
140 ],
Jason Macnakc417d3b2020-04-06 10:30:28 -0700141}
142
143// dependent_library ["feature_list"]
Haibo Huang5bf87962021-02-09 17:18:40 -0800144// autocfg-1.0.1
Joel Galenson1fdff8f2021-04-01 16:17:54 -0700145// byteorder-1.4.3 "default,std"
Haibo Huang5bf87962021-02-09 17:18:40 -0800146// bytes-0.4.12
147// cfg-if-0.1.10
148// cfg-if-1.0.0
149// crossbeam-deque-0.7.3
150// crossbeam-epoch-0.8.2 "default,lazy_static,std"
151// crossbeam-queue-0.2.3 "default,std"
152// crossbeam-utils-0.7.2 "default,lazy_static,std"
153// fnv-1.0.7 "default,std"
Joel Galenson1fdff8f2021-04-01 16:17:54 -0700154// futures-0.1.31 "default,use_std,with-deprecated"
Joel Galenson4fa481b2021-04-27 11:06:05 -0700155// futures-channel-0.3.14 "alloc,std"
156// futures-core-0.3.14 "alloc,std"
157// futures-io-0.3.14 "std"
Joel Galenson1fdff8f2021-04-01 16:17:54 -0700158// futures-macro-0.3.13
Joel Galenson4fa481b2021-04-27 11:06:05 -0700159// futures-sink-0.3.14
160// futures-task-0.3.14 "alloc,std"
Haibo Huang5bf87962021-02-09 17:18:40 -0800161// iovec-0.1.4
162// lazy_static-1.4.0
Joel Galenson4fa481b2021-04-27 11:06:05 -0700163// libc-0.2.94 "default,std"
Haibo Huang5bf87962021-02-09 17:18:40 -0800164// lock_api-0.3.4
165// log-0.4.14
166// maybe-uninit-2.0.0
Jiyong Parkeb238162020-12-07 15:47:40 +0900167// memchr-2.3.4 "default,std"
Haibo Huang5bf87962021-02-09 17:18:40 -0800168// memoffset-0.5.6 "default"
169// mio-0.6.23 "default,with-deprecated"
170// mio-uds-0.6.8
171// net2-0.2.37 "default,duration"
172// num_cpus-1.13.0
Haibo Huang5bf87962021-02-09 17:18:40 -0800173// parking_lot-0.9.0 "default"
174// parking_lot_core-0.6.2
Joel Galenson1fdff8f2021-04-01 16:17:54 -0700175// pin-project-lite-0.2.6
Haibo Huang52627c82020-05-08 19:26:17 -0700176// pin-utils-0.1.0
Jiyong Parkeb238162020-12-07 15:47:40 +0900177// proc-macro-hack-0.5.19
Haibo Huang5bf87962021-02-09 17:18:40 -0800178// proc-macro-nested-0.1.7
Joel Galenson1fdff8f2021-04-01 16:17:54 -0700179// proc-macro2-1.0.26 "default,proc-macro"
180// quote-1.0.9 "default,proc-macro"
Haibo Huang5bf87962021-02-09 17:18:40 -0800181// rustc_version-0.2.3
182// scopeguard-1.1.0
183// semver-0.9.0 "default"
184// semver-parser-0.7.0
Joel Galenson4fa481b2021-04-27 11:06:05 -0700185// slab-0.4.3 "default,std"
Haibo Huang5bf87962021-02-09 17:18:40 -0800186// smallvec-0.6.14 "default,std"
Joel Galenson4fa481b2021-04-27 11:06:05 -0700187// syn-1.0.70 "clone-impls,default,derive,full,parsing,printing,proc-macro,quote"
Haibo Huang5bf87962021-02-09 17:18:40 -0800188// tokio-0.1.22 "bytes,codec,default,fs,io,mio,num_cpus,reactor,rt-full,sync,tcp,timer,tokio-codec,tokio-current-thread,tokio-executor,tokio-fs,tokio-io,tokio-reactor,tokio-sync,tokio-tcp,tokio-threadpool,tokio-timer,tokio-udp,tokio-uds,udp,uds"
189// tokio-codec-0.1.2
190// tokio-current-thread-0.1.7
191// tokio-executor-0.1.10
192// tokio-fs-0.1.7
193// tokio-io-0.1.13
194// tokio-reactor-0.1.12
195// tokio-sync-0.1.8
196// tokio-tcp-0.1.4
197// tokio-threadpool-0.1.18
198// tokio-timer-0.2.13
199// tokio-udp-0.1.6
200// tokio-uds-0.2.7
Chih-Hung Hsieh1529dcb2020-07-12 14:21:43 -0700201// unicode-xid-0.2.1 "default"