blob: 9d3dea93587e18025cf4bb8212bc35ead9985b8a [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
Joel Galenson03a354c2021-11-29 14:03:49 -080040rust_test {
41 name: "futures-util_test_src_lib",
42 host_supported: true,
Chih-Hung Hsieh99abb8c2020-07-16 16:27:50 -070043 crate_name: "futures_util",
Joel Galensondc20fc82021-09-22 10:59:23 -070044 cargo_env_compat: true,
David LeGare737dc972022-03-02 16:21:21 +000045 cargo_pkg_version: "0.3.21",
Joel Galenson03a354c2021-11-29 14:03:49 -080046 srcs: ["src/lib.rs"],
Chih-Hung Hsieh99abb8c2020-07-16 16:27:50 -070047 test_suites: ["general-tests"],
48 auto_gen_config: true,
Joel Galenson03a354c2021-11-29 14:03:49 -080049 test_options: {
50 unit_test: true,
51 },
Chih-Hung Hsieh99abb8c2020-07-16 16:27:50 -070052 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 Hsieh99abb8c2020-07-16 16:27:50 -070065 "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 Huang5bf87962021-02-09 17:18:40 -080076 "libpin_project_lite",
Chih-Hung Hsieh99abb8c2020-07-16 16:27:50 -070077 "libpin_utils",
Chih-Hung Hsieh99abb8c2020-07-16 16:27:50 -070078 "libslab",
Haibo Huang5bf87962021-02-09 17:18:40 -080079 "libtokio",
Chih-Hung Hsieh99abb8c2020-07-16 16:27:50 -070080 ],
David LeGare737dc972022-03-02 16:21:21 +000081 proc_macros: ["libfutures_macro"],
Chih-Hung Hsieh99abb8c2020-07-16 16:27:50 -070082}
83
Matthew Maurer68718732020-07-06 13:20:29 -070084rust_library {
Jason Macnakc417d3b2020-04-06 10:30:28 -070085 name: "libfutures_util",
Andrew Walbran8c390192020-06-09 14:27:31 +010086 host_supported: true,
Jason Macnakc417d3b2020-04-06 10:30:28 -070087 crate_name: "futures_util",
Joel Galensondc20fc82021-09-22 10:59:23 -070088 cargo_env_compat: true,
David LeGare737dc972022-03-02 16:21:21 +000089 cargo_pkg_version: "0.3.21",
Jason Macnakc417d3b2020-04-06 10:30:28 -070090 srcs: ["src/lib.rs"],
91 edition: "2018",
92 features: [
93 "alloc",
94 "async-await",
95 "async-await-macro",
96 "channel",
97 "default",
Haibo Huang52627c82020-05-08 19:26:17 -070098 "futures-channel",
99 "futures-io",
Jason Macnakc417d3b2020-04-06 10:30:28 -0700100 "futures-macro",
Haibo Huang52627c82020-05-08 19:26:17 -0700101 "futures-sink",
Jason Macnakc417d3b2020-04-06 10:30:28 -0700102 "io",
Haibo Huang52627c82020-05-08 19:26:17 -0700103 "memchr",
Jason Macnakc417d3b2020-04-06 10:30:28 -0700104 "sink",
105 "slab",
106 "std",
107 ],
Matthew Maurer68718732020-07-06 13:20:29 -0700108 rustlibs: [
Jason Macnakc417d3b2020-04-06 10:30:28 -0700109 "libfutures_channel",
110 "libfutures_core",
111 "libfutures_io",
112 "libfutures_sink",
113 "libfutures_task",
114 "libmemchr",
Haibo Huang5bf87962021-02-09 17:18:40 -0800115 "libpin_project_lite",
Jason Macnakc417d3b2020-04-06 10:30:28 -0700116 "libpin_utils",
Jason Macnakc417d3b2020-04-06 10:30:28 -0700117 "libslab",
118 ],
David LeGare737dc972022-03-02 16:21:21 +0000119 proc_macros: ["libfutures_macro"],
Jiyong Parkeb238162020-12-07 15:47:40 +0900120 apex_available: [
121 "//apex_available:platform",
Roopa Sattirajuaf5e0a02021-12-21 17:40:41 -0800122 "com.android.bluetooth",
Luke Huang18aa8ae2021-06-22 12:37:16 +0800123 "com.android.resolv",
Jiyong Parkeb238162020-12-07 15:47:40 +0900124 "com.android.virt",
125 ],
Luke Huang18aa8ae2021-06-22 12:37:16 +0800126 min_sdk_version: "29",
Jason Macnakc417d3b2020-04-06 10:30:28 -0700127}