• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// This file is generated by cargo_embargo.
2// Do not modify this file after the first "rust_*" or "genrule" module
3// because the changes will be overridden on upgrade.
4// Content before the first "rust_*" or "genrule" module is preserved.
5
6package {
7    default_applicable_licenses: [
8        "external_rust_crates_futures-executor_license",
9    ],
10}
11
12// Added automatically by a large-scale-change that took the approach of
13// 'apply every license found to every target'. While this makes sure we respect
14// every license restriction, it may not be entirely correct.
15//
16// e.g. GPL in an MIT project might only apply to the contrib/ directory.
17//
18// Please consider splitting the single license below into multiple licenses,
19// taking care not to lose any license_kind information, and overriding the
20// default license using the 'licenses: [...]' property on targets as needed.
21//
22// For unused files, consider creating a 'fileGroup' with "//visibility:private"
23// to attach the license to, and including a comment whether the files may be
24// used in the current project.
25//
26// large-scale-change included anything that looked like it might be a license
27// text as a license_text. e.g. LICENSE, NOTICE, COPYING etc.
28//
29// Please consider removing redundant or irrelevant files from 'license_text:'.
30// See: http://go/android-license-faq
31license {
32    name: "external_rust_crates_futures-executor_license",
33    visibility: [":__subpackages__"],
34    license_kinds: [
35        "SPDX-license-identifier-Apache-2.0",
36        "SPDX-license-identifier-MIT",
37    ],
38    license_text: [
39        "LICENSE-APACHE",
40        "LICENSE-MIT",
41    ],
42}
43
44rust_test {
45    name: "futures-executor_test_src_lib",
46    host_supported: true,
47    crate_name: "futures_executor",
48    cargo_env_compat: true,
49    cargo_pkg_version: "0.3.30",
50    crate_root: "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        "num_cpus",
59        "std",
60        "thread-pool",
61    ],
62    rustlibs: [
63        "libfutures",
64        "libfutures_core",
65        "libfutures_task",
66        "libfutures_util",
67        "libnum_cpus",
68    ],
69}
70
71rust_test {
72    name: "futures-executor_test_tests_local_pool",
73    host_supported: true,
74    crate_name: "local_pool",
75    cargo_env_compat: true,
76    cargo_pkg_version: "0.3.30",
77    crate_root: "tests/local_pool.rs",
78    test_suites: ["general-tests"],
79    auto_gen_config: true,
80    test_options: {
81        unit_test: true,
82    },
83    edition: "2018",
84    features: [
85        "num_cpus",
86        "std",
87        "thread-pool",
88    ],
89    rustlibs: [
90        "libfutures",
91        "libfutures_core",
92        "libfutures_executor",
93        "libfutures_task",
94        "libfutures_util",
95        "libnum_cpus",
96    ],
97}
98
99rust_library {
100    name: "libfutures_executor",
101    host_supported: true,
102    crate_name: "futures_executor",
103    cargo_env_compat: true,
104    cargo_pkg_version: "0.3.30",
105    crate_root: "src/lib.rs",
106    edition: "2018",
107    features: [
108        "num_cpus",
109        "std",
110        "thread-pool",
111    ],
112    rustlibs: [
113        "libfutures_core",
114        "libfutures_task",
115        "libfutures_util",
116        "libnum_cpus",
117    ],
118    apex_available: [
119        "//apex_available:platform",
120        "com.android.btservices",
121        "com.android.resolv",
122        "com.android.virt",
123    ],
124    product_available: true,
125    vendor_available: true,
126    min_sdk_version: "29",
127}
128