• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// This file is generated by cargo2android.py --config cargo2android.json.
2// Do not modify this file as changes will be overridden on upgrade.
3
4package {
5    default_applicable_licenses: [
6        "external_rust_crates_futures-channel_license",
7    ],
8}
9
10// Added automatically by a large-scale-change that took the approach of
11// 'apply every license found to every target'. While this makes sure we respect
12// every license restriction, it may not be entirely correct.
13//
14// e.g. GPL in an MIT project might only apply to the contrib/ directory.
15//
16// Please consider splitting the single license below into multiple licenses,
17// taking care not to lose any license_kind information, and overriding the
18// default license using the 'licenses: [...]' property on targets as needed.
19//
20// For unused files, consider creating a 'fileGroup' with "//visibility:private"
21// to attach the license to, and including a comment whether the files may be
22// used in the current project.
23//
24// large-scale-change included anything that looked like it might be a license
25// text as a license_text. e.g. LICENSE, NOTICE, COPYING etc.
26//
27// Please consider removing redundant or irrelevant files from 'license_text:'.
28// See: http://go/android-license-faq
29license {
30    name: "external_rust_crates_futures-channel_license",
31    visibility: [":__subpackages__"],
32    license_kinds: [
33        "SPDX-license-identifier-Apache-2.0",
34        "SPDX-license-identifier-BSD",
35        "SPDX-license-identifier-MIT",
36    ],
37    license_text: [
38        "LICENSE",
39        "LICENSE-APACHE",
40        "LICENSE-MIT",
41    ],
42}
43
44rust_test {
45    name: "futures-channel_test_src_lib",
46    host_supported: true,
47    crate_name: "futures_channel",
48    cargo_env_compat: true,
49    cargo_pkg_version: "0.3.26",
50    srcs: ["src/lib.rs"],
51    test_suites: ["general-tests"],
52    auto_gen_config: true,
53    test_options: {
54        unit_test: true,
55    },
56    edition: "2018",
57    features: [
58        "alloc",
59        "default",
60        "futures-sink",
61        "sink",
62        "std",
63    ],
64    rustlibs: [
65        "libfutures",
66        "libfutures_core",
67        "libfutures_sink",
68        "libfutures_test",
69    ],
70}
71
72rust_defaults {
73    name: "futures-channel_test_defaults",
74    crate_name: "futures_channel",
75    cargo_env_compat: true,
76    cargo_pkg_version: "0.3.26",
77    test_suites: ["general-tests"],
78    auto_gen_config: true,
79    edition: "2018",
80    features: [
81        "alloc",
82        "default",
83        "futures-sink",
84        "sink",
85        "std",
86    ],
87    rustlibs: [
88        "libfutures",
89        "libfutures_channel",
90        "libfutures_core",
91        "libfutures_sink",
92        "libfutures_test",
93    ],
94}
95
96rust_test {
97    name: "futures-channel_test_tests_channel",
98    defaults: ["futures-channel_test_defaults"],
99    host_supported: true,
100    srcs: ["tests/channel.rs"],
101    test_options: {
102        unit_test: true,
103    },
104}
105
106rust_test {
107    name: "futures-channel_test_tests_mpsc-close",
108    defaults: ["futures-channel_test_defaults"],
109    host_supported: true,
110    srcs: ["tests/mpsc-close.rs"],
111    test_options: {
112        unit_test: true,
113    },
114}
115
116rust_test {
117    name: "futures-channel_test_tests_mpsc-size_hint",
118    defaults: ["futures-channel_test_defaults"],
119    host_supported: true,
120    srcs: ["tests/mpsc-size_hint.rs"],
121    test_options: {
122        unit_test: true,
123    },
124}
125
126rust_test {
127    name: "futures-channel_test_tests_mpsc",
128    defaults: ["futures-channel_test_defaults"],
129    host_supported: true,
130    srcs: ["tests/mpsc.rs"],
131    test_options: {
132        unit_test: true,
133    },
134}
135
136rust_test {
137    name: "futures-channel_test_tests_oneshot",
138    defaults: ["futures-channel_test_defaults"],
139    host_supported: true,
140    srcs: ["tests/oneshot.rs"],
141    test_options: {
142        unit_test: true,
143    },
144}
145
146rust_library {
147    name: "libfutures_channel",
148    host_supported: true,
149    crate_name: "futures_channel",
150    cargo_env_compat: true,
151    cargo_pkg_version: "0.3.26",
152    srcs: ["src/lib.rs"],
153    edition: "2018",
154    features: [
155        "alloc",
156        "default",
157        "futures-sink",
158        "sink",
159        "std",
160    ],
161    rustlibs: [
162        "libfutures_core",
163        "libfutures_sink",
164    ],
165    apex_available: [
166        "//apex_available:platform",
167        "com.android.btservices",
168        "com.android.resolv",
169        "com.android.virt",
170    ],
171    product_available: true,
172    vendor_available: true,
173    min_sdk_version: "29",
174}
175