• 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: ["external_rust_crates_anyhow_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_anyhow_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
40rust_test {
41    name: "anyhow_test_src_lib",
42    host_supported: true,
43    crate_name: "anyhow",
44    cargo_env_compat: true,
45    cargo_pkg_version: "1.0.44",
46    srcs: ["src/lib.rs"],
47    test_suites: ["general-tests"],
48    auto_gen_config: true,
49    test_options: {
50        unit_test: true,
51    },
52    edition: "2018",
53    features: [
54        "default",
55        "std",
56    ],
57    rustlibs: [
58        "libfutures",
59        "libthiserror",
60    ],
61}
62
63rust_defaults {
64    name: "anyhow_test_defaults",
65    crate_name: "anyhow",
66    cargo_env_compat: true,
67    cargo_pkg_version: "1.0.44",
68    test_suites: ["general-tests"],
69    auto_gen_config: true,
70    edition: "2018",
71    features: [
72        "default",
73        "std",
74    ],
75    rustlibs: [
76        "libanyhow",
77        "libfutures",
78        "libthiserror",
79    ],
80}
81
82rust_test {
83    name: "anyhow_test_tests_test_autotrait",
84    defaults: ["anyhow_test_defaults"],
85    host_supported: true,
86    srcs: ["tests/test_autotrait.rs"],
87    test_options: {
88        unit_test: true,
89    },
90}
91
92rust_test {
93    name: "anyhow_test_tests_test_boxed",
94    defaults: ["anyhow_test_defaults"],
95    host_supported: true,
96    srcs: ["tests/test_boxed.rs"],
97    test_options: {
98        unit_test: true,
99    },
100}
101
102rust_test {
103    name: "anyhow_test_tests_test_chain",
104    defaults: ["anyhow_test_defaults"],
105    host_supported: true,
106    srcs: ["tests/test_chain.rs"],
107    test_options: {
108        unit_test: true,
109    },
110}
111
112rust_test {
113    name: "anyhow_test_tests_test_context",
114    defaults: ["anyhow_test_defaults"],
115    host_supported: true,
116    srcs: ["tests/test_context.rs"],
117    test_options: {
118        unit_test: true,
119    },
120}
121
122rust_test {
123    name: "anyhow_test_tests_test_convert",
124    defaults: ["anyhow_test_defaults"],
125    host_supported: true,
126    srcs: ["tests/test_convert.rs"],
127    test_options: {
128        unit_test: true,
129    },
130}
131
132rust_test {
133    name: "anyhow_test_tests_test_downcast",
134    defaults: ["anyhow_test_defaults"],
135    host_supported: true,
136    srcs: ["tests/test_downcast.rs"],
137    test_options: {
138        unit_test: true,
139    },
140}
141
142rust_test {
143    name: "anyhow_test_tests_test_fmt",
144    defaults: ["anyhow_test_defaults"],
145    host_supported: true,
146    srcs: ["tests/test_fmt.rs"],
147    test_options: {
148        unit_test: true,
149    },
150}
151
152rust_test {
153    name: "anyhow_test_tests_test_macros",
154    defaults: ["anyhow_test_defaults"],
155    host_supported: true,
156    srcs: ["tests/test_macros.rs"],
157    test_options: {
158        unit_test: true,
159    },
160}
161
162rust_test {
163    name: "anyhow_test_tests_test_repr",
164    defaults: ["anyhow_test_defaults"],
165    host_supported: true,
166    srcs: ["tests/test_repr.rs"],
167    test_options: {
168        unit_test: true,
169    },
170}
171
172rust_test {
173    name: "anyhow_test_tests_test_source",
174    defaults: ["anyhow_test_defaults"],
175    host_supported: true,
176    srcs: ["tests/test_source.rs"],
177    test_options: {
178        unit_test: true,
179    },
180}
181
182rust_library {
183    name: "libanyhow",
184    host_supported: true,
185    crate_name: "anyhow",
186    cargo_env_compat: true,
187    cargo_pkg_version: "1.0.44",
188    srcs: ["src/lib.rs"],
189    edition: "2018",
190    features: [
191        "default",
192        "std",
193    ],
194    apex_available: [
195        "//apex_available:platform",
196        "com.android.bluetooth",
197        "com.android.compos",
198        "com.android.resolv",
199        "com.android.uwb",
200        "com.android.virt",
201    ],
202    vendor_available: true,
203    min_sdk_version: "29",
204}
205