Jiyong Park | eb23816 | 2020-12-07 15:47:40 +0900 | [diff] [blame] | 1 | // This file is generated by cargo2android.py --run --device --features channel,default,io,memchr,sink --dependencies --tests --patch=patches/Android.bp.patch. |
Joel Galenson | 1fdff8f | 2021-04-01 16:17:54 -0700 | [diff] [blame^] | 2 | // Do not modify this file as changes will be overridden on upgrade. |
Chih-Hung Hsieh | 99abb8c | 2020-07-16 16:27:50 -0700 | [diff] [blame] | 3 | |
Bob Badour | 90bdae9 | 2021-02-12 17:31:39 -0800 | [diff] [blame] | 4 | package { |
| 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 |
| 27 | license { |
| 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 Hsieh | 99abb8c | 2020-07-16 16:27:50 -0700 | [diff] [blame] | 40 | rust_defaults { |
| 41 | name: "futures-util_defaults", |
| 42 | crate_name: "futures_util", |
Chih-Hung Hsieh | 99abb8c | 2020-07-16 16:27:50 -0700 | [diff] [blame] | 43 | 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 Huang | 5bf8796 | 2021-02-09 17:18:40 -0800 | [diff] [blame] | 72 | "libpin_project_lite", |
Chih-Hung Hsieh | 99abb8c | 2020-07-16 16:27:50 -0700 | [diff] [blame] | 73 | "libpin_utils", |
| 74 | "libproc_macro_nested", |
| 75 | "libslab", |
Haibo Huang | 5bf8796 | 2021-02-09 17:18:40 -0800 | [diff] [blame] | 76 | "libtokio", |
Chih-Hung Hsieh | 99abb8c | 2020-07-16 16:27:50 -0700 | [diff] [blame] | 77 | ], |
| 78 | proc_macros: [ |
| 79 | "libfutures_macro", |
| 80 | "libproc_macro_hack", |
| 81 | ], |
| 82 | } |
| 83 | |
| 84 | rust_test_host { |
| 85 | name: "futures-util_host_test_src_lib", |
| 86 | defaults: ["futures-util_defaults"], |
Haibo Huang | 5bf8796 | 2021-02-09 17:18:40 -0800 | [diff] [blame] | 87 | test_options: { |
| 88 | unit_test: true, |
| 89 | }, |
Chih-Hung Hsieh | 99abb8c | 2020-07-16 16:27:50 -0700 | [diff] [blame] | 90 | } |
| 91 | |
| 92 | rust_test { |
| 93 | name: "futures-util_device_test_src_lib", |
| 94 | defaults: ["futures-util_defaults"], |
| 95 | } |
Jason Macnak | c417d3b | 2020-04-06 10:30:28 -0700 | [diff] [blame] | 96 | |
Matthew Maurer | 6871873 | 2020-07-06 13:20:29 -0700 | [diff] [blame] | 97 | rust_library { |
Jason Macnak | c417d3b | 2020-04-06 10:30:28 -0700 | [diff] [blame] | 98 | name: "libfutures_util", |
Andrew Walbran | 8c39019 | 2020-06-09 14:27:31 +0100 | [diff] [blame] | 99 | host_supported: true, |
Jason Macnak | c417d3b | 2020-04-06 10:30:28 -0700 | [diff] [blame] | 100 | 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 Huang | 52627c8 | 2020-05-08 19:26:17 -0700 | [diff] [blame] | 109 | "futures-channel", |
| 110 | "futures-io", |
Jason Macnak | c417d3b | 2020-04-06 10:30:28 -0700 | [diff] [blame] | 111 | "futures-macro", |
Haibo Huang | 52627c8 | 2020-05-08 19:26:17 -0700 | [diff] [blame] | 112 | "futures-sink", |
Jason Macnak | c417d3b | 2020-04-06 10:30:28 -0700 | [diff] [blame] | 113 | "io", |
Haibo Huang | 52627c8 | 2020-05-08 19:26:17 -0700 | [diff] [blame] | 114 | "memchr", |
Jason Macnak | c417d3b | 2020-04-06 10:30:28 -0700 | [diff] [blame] | 115 | "proc-macro-hack", |
| 116 | "proc-macro-nested", |
| 117 | "sink", |
| 118 | "slab", |
| 119 | "std", |
| 120 | ], |
Matthew Maurer | 6871873 | 2020-07-06 13:20:29 -0700 | [diff] [blame] | 121 | rustlibs: [ |
Jason Macnak | c417d3b | 2020-04-06 10:30:28 -0700 | [diff] [blame] | 122 | "libfutures_channel", |
| 123 | "libfutures_core", |
| 124 | "libfutures_io", |
| 125 | "libfutures_sink", |
| 126 | "libfutures_task", |
| 127 | "libmemchr", |
Haibo Huang | 5bf8796 | 2021-02-09 17:18:40 -0800 | [diff] [blame] | 128 | "libpin_project_lite", |
Jason Macnak | c417d3b | 2020-04-06 10:30:28 -0700 | [diff] [blame] | 129 | "libpin_utils", |
| 130 | "libproc_macro_nested", |
| 131 | "libslab", |
| 132 | ], |
| 133 | proc_macros: [ |
| 134 | "libfutures_macro", |
| 135 | "libproc_macro_hack", |
| 136 | ], |
Jiyong Park | eb23816 | 2020-12-07 15:47:40 +0900 | [diff] [blame] | 137 | apex_available: [ |
| 138 | "//apex_available:platform", |
| 139 | "com.android.virt", |
| 140 | ], |
Jason Macnak | c417d3b | 2020-04-06 10:30:28 -0700 | [diff] [blame] | 141 | } |
| 142 | |
| 143 | // dependent_library ["feature_list"] |
Haibo Huang | 5bf8796 | 2021-02-09 17:18:40 -0800 | [diff] [blame] | 144 | // autocfg-1.0.1 |
Joel Galenson | 1fdff8f | 2021-04-01 16:17:54 -0700 | [diff] [blame^] | 145 | // byteorder-1.4.3 "default,std" |
Haibo Huang | 5bf8796 | 2021-02-09 17:18:40 -0800 | [diff] [blame] | 146 | // 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 Galenson | 1fdff8f | 2021-04-01 16:17:54 -0700 | [diff] [blame^] | 154 | // futures-0.1.31 "default,use_std,with-deprecated" |
| 155 | // futures-channel-0.3.13 "alloc,std" |
| 156 | // futures-core-0.3.13 "alloc,std" |
| 157 | // futures-io-0.3.13 "std" |
| 158 | // futures-macro-0.3.13 |
| 159 | // futures-sink-0.3.13 |
| 160 | // futures-task-0.3.13 "alloc,std" |
Haibo Huang | 5bf8796 | 2021-02-09 17:18:40 -0800 | [diff] [blame] | 161 | // iovec-0.1.4 |
| 162 | // lazy_static-1.4.0 |
Joel Galenson | 1fdff8f | 2021-04-01 16:17:54 -0700 | [diff] [blame^] | 163 | // libc-0.2.92 "default,std" |
Haibo Huang | 5bf8796 | 2021-02-09 17:18:40 -0800 | [diff] [blame] | 164 | // lock_api-0.3.4 |
| 165 | // log-0.4.14 |
| 166 | // maybe-uninit-2.0.0 |
Jiyong Park | eb23816 | 2020-12-07 15:47:40 +0900 | [diff] [blame] | 167 | // memchr-2.3.4 "default,std" |
Haibo Huang | 5bf8796 | 2021-02-09 17:18:40 -0800 | [diff] [blame] | 168 | // 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 Huang | 5bf8796 | 2021-02-09 17:18:40 -0800 | [diff] [blame] | 173 | // parking_lot-0.9.0 "default" |
| 174 | // parking_lot_core-0.6.2 |
Joel Galenson | 1fdff8f | 2021-04-01 16:17:54 -0700 | [diff] [blame^] | 175 | // pin-project-lite-0.2.6 |
Haibo Huang | 52627c8 | 2020-05-08 19:26:17 -0700 | [diff] [blame] | 176 | // pin-utils-0.1.0 |
Jiyong Park | eb23816 | 2020-12-07 15:47:40 +0900 | [diff] [blame] | 177 | // proc-macro-hack-0.5.19 |
Haibo Huang | 5bf8796 | 2021-02-09 17:18:40 -0800 | [diff] [blame] | 178 | // proc-macro-nested-0.1.7 |
Joel Galenson | 1fdff8f | 2021-04-01 16:17:54 -0700 | [diff] [blame^] | 179 | // proc-macro2-1.0.26 "default,proc-macro" |
| 180 | // quote-1.0.9 "default,proc-macro" |
Haibo Huang | 5bf8796 | 2021-02-09 17:18:40 -0800 | [diff] [blame] | 181 | // rustc_version-0.2.3 |
| 182 | // scopeguard-1.1.0 |
| 183 | // semver-0.9.0 "default" |
| 184 | // semver-parser-0.7.0 |
Jason Macnak | c417d3b | 2020-04-06 10:30:28 -0700 | [diff] [blame] | 185 | // slab-0.4.2 |
Haibo Huang | 5bf8796 | 2021-02-09 17:18:40 -0800 | [diff] [blame] | 186 | // smallvec-0.6.14 "default,std" |
Joel Galenson | 1fdff8f | 2021-04-01 16:17:54 -0700 | [diff] [blame^] | 187 | // syn-1.0.68 "clone-impls,default,derive,full,parsing,printing,proc-macro,quote" |
Haibo Huang | 5bf8796 | 2021-02-09 17:18:40 -0800 | [diff] [blame] | 188 | // 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 Hsieh | 1529dcb | 2020-07-12 14:21:43 -0700 | [diff] [blame] | 201 | // unicode-xid-0.2.1 "default" |