Joel Galenson | 4fa481b | 2021-04-27 11:06:05 -0700 | [diff] [blame] | 1 | // This file is generated by cargo2android.py --config cargo2android.json. |
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 | |
Joel Galenson | 03a354c | 2021-11-29 14:03:49 -0800 | [diff] [blame] | 40 | rust_test { |
| 41 | name: "futures-util_test_src_lib", |
| 42 | host_supported: true, |
Chih-Hung Hsieh | 99abb8c | 2020-07-16 16:27:50 -0700 | [diff] [blame] | 43 | crate_name: "futures_util", |
Joel Galenson | dc20fc8 | 2021-09-22 10:59:23 -0700 | [diff] [blame] | 44 | cargo_env_compat: true, |
David LeGare | 737dc97 | 2022-03-02 16:21:21 +0000 | [diff] [blame] | 45 | cargo_pkg_version: "0.3.21", |
Joel Galenson | 03a354c | 2021-11-29 14:03:49 -0800 | [diff] [blame] | 46 | srcs: ["src/lib.rs"], |
Chih-Hung Hsieh | 99abb8c | 2020-07-16 16:27:50 -0700 | [diff] [blame] | 47 | test_suites: ["general-tests"], |
| 48 | auto_gen_config: true, |
Joel Galenson | 03a354c | 2021-11-29 14:03:49 -0800 | [diff] [blame] | 49 | test_options: { |
| 50 | unit_test: true, |
| 51 | }, |
Chih-Hung Hsieh | 99abb8c | 2020-07-16 16:27:50 -0700 | [diff] [blame] | 52 | edition: "2018", |
| 53 | features: [ |
| 54 | "alloc", |
| 55 | "async-await", |
| 56 | "async-await-macro", |
| 57 | "channel", |
| 58 | "default", |
| 59 | "futures-channel", |
| 60 | "futures-io", |
| 61 | "futures-macro", |
| 62 | "futures-sink", |
| 63 | "io", |
| 64 | "memchr", |
Chih-Hung Hsieh | 99abb8c | 2020-07-16 16:27:50 -0700 | [diff] [blame] | 65 | "sink", |
| 66 | "slab", |
| 67 | "std", |
| 68 | ], |
| 69 | rustlibs: [ |
| 70 | "libfutures_channel", |
| 71 | "libfutures_core", |
| 72 | "libfutures_io", |
| 73 | "libfutures_sink", |
| 74 | "libfutures_task", |
| 75 | "libmemchr", |
Haibo Huang | 5bf8796 | 2021-02-09 17:18:40 -0800 | [diff] [blame] | 76 | "libpin_project_lite", |
Chih-Hung Hsieh | 99abb8c | 2020-07-16 16:27:50 -0700 | [diff] [blame] | 77 | "libpin_utils", |
Chih-Hung Hsieh | 99abb8c | 2020-07-16 16:27:50 -0700 | [diff] [blame] | 78 | "libslab", |
Haibo Huang | 5bf8796 | 2021-02-09 17:18:40 -0800 | [diff] [blame] | 79 | "libtokio", |
Chih-Hung Hsieh | 99abb8c | 2020-07-16 16:27:50 -0700 | [diff] [blame] | 80 | ], |
David LeGare | 737dc97 | 2022-03-02 16:21:21 +0000 | [diff] [blame] | 81 | proc_macros: ["libfutures_macro"], |
Chih-Hung Hsieh | 99abb8c | 2020-07-16 16:27:50 -0700 | [diff] [blame] | 82 | } |
| 83 | |
Matthew Maurer | 6871873 | 2020-07-06 13:20:29 -0700 | [diff] [blame] | 84 | rust_library { |
Jason Macnak | c417d3b | 2020-04-06 10:30:28 -0700 | [diff] [blame] | 85 | name: "libfutures_util", |
Andrew Walbran | 8c39019 | 2020-06-09 14:27:31 +0100 | [diff] [blame] | 86 | host_supported: true, |
Jason Macnak | c417d3b | 2020-04-06 10:30:28 -0700 | [diff] [blame] | 87 | crate_name: "futures_util", |
Joel Galenson | dc20fc8 | 2021-09-22 10:59:23 -0700 | [diff] [blame] | 88 | cargo_env_compat: true, |
David LeGare | 737dc97 | 2022-03-02 16:21:21 +0000 | [diff] [blame] | 89 | cargo_pkg_version: "0.3.21", |
Jason Macnak | c417d3b | 2020-04-06 10:30:28 -0700 | [diff] [blame] | 90 | srcs: ["src/lib.rs"], |
| 91 | edition: "2018", |
| 92 | features: [ |
| 93 | "alloc", |
| 94 | "async-await", |
| 95 | "async-await-macro", |
| 96 | "channel", |
| 97 | "default", |
Haibo Huang | 52627c8 | 2020-05-08 19:26:17 -0700 | [diff] [blame] | 98 | "futures-channel", |
| 99 | "futures-io", |
Jason Macnak | c417d3b | 2020-04-06 10:30:28 -0700 | [diff] [blame] | 100 | "futures-macro", |
Haibo Huang | 52627c8 | 2020-05-08 19:26:17 -0700 | [diff] [blame] | 101 | "futures-sink", |
Jason Macnak | c417d3b | 2020-04-06 10:30:28 -0700 | [diff] [blame] | 102 | "io", |
Haibo Huang | 52627c8 | 2020-05-08 19:26:17 -0700 | [diff] [blame] | 103 | "memchr", |
Jason Macnak | c417d3b | 2020-04-06 10:30:28 -0700 | [diff] [blame] | 104 | "sink", |
| 105 | "slab", |
| 106 | "std", |
| 107 | ], |
Matthew Maurer | 6871873 | 2020-07-06 13:20:29 -0700 | [diff] [blame] | 108 | rustlibs: [ |
Jason Macnak | c417d3b | 2020-04-06 10:30:28 -0700 | [diff] [blame] | 109 | "libfutures_channel", |
| 110 | "libfutures_core", |
| 111 | "libfutures_io", |
| 112 | "libfutures_sink", |
| 113 | "libfutures_task", |
| 114 | "libmemchr", |
Haibo Huang | 5bf8796 | 2021-02-09 17:18:40 -0800 | [diff] [blame] | 115 | "libpin_project_lite", |
Jason Macnak | c417d3b | 2020-04-06 10:30:28 -0700 | [diff] [blame] | 116 | "libpin_utils", |
Jason Macnak | c417d3b | 2020-04-06 10:30:28 -0700 | [diff] [blame] | 117 | "libslab", |
| 118 | ], |
David LeGare | 737dc97 | 2022-03-02 16:21:21 +0000 | [diff] [blame] | 119 | proc_macros: ["libfutures_macro"], |
Jiyong Park | eb23816 | 2020-12-07 15:47:40 +0900 | [diff] [blame] | 120 | apex_available: [ |
| 121 | "//apex_available:platform", |
Roopa Sattiraju | af5e0a0 | 2021-12-21 17:40:41 -0800 | [diff] [blame] | 122 | "com.android.bluetooth", |
Luke Huang | 18aa8ae | 2021-06-22 12:37:16 +0800 | [diff] [blame] | 123 | "com.android.resolv", |
Jiyong Park | eb23816 | 2020-12-07 15:47:40 +0900 | [diff] [blame] | 124 | "com.android.virt", |
| 125 | ], |
Luke Huang | 18aa8ae | 2021-06-22 12:37:16 +0800 | [diff] [blame] | 126 | min_sdk_version: "29", |
Jason Macnak | c417d3b | 2020-04-06 10:30:28 -0700 | [diff] [blame] | 127 | } |