blob: 1a9fd3fd507f6dc34f3c0cab0a888d320c8a5620 [file] [log] [blame]
Yiming Jing83fca392021-07-16 13:50:40 -07001// This file is generated by cargo2android.py --config cargo2android.json.
2// Do not modify this file as changes will be overridden on upgrade.
3
Bob Badourd0f6e072021-08-02 13:02:38 -07004package {
5 default_applicable_licenses: ["external_rust_crates_num-bigint_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_num-bigint_license",
29 visibility: [":__subpackages__"],
30 license_kinds: [
31 "SPDX-license-identifier-Apache-2.0",
32 "SPDX-license-identifier-BSD",
33 "SPDX-license-identifier-MIT",
34 ],
35 license_text: [
36 "LICENSE-APACHE",
37 "LICENSE-MIT",
38 ],
39}
40
Yiming Jing83fca392021-07-16 13:50:40 -070041genrule {
42 name: "copy_num-bigint_build_out",
43 srcs: ["out/*"],
44 cmd: "cp $(in) $(genDir)",
45 out: [
46 "probe0.ll",
47 "probe1.ll",
48 "probe2.ll",
49 "probe3.ll",
50 "radix_bases.rs",
51 ],
52}
53
54rust_library {
55 name: "libnum_bigint",
56 host_supported: true,
57 crate_name: "num_bigint",
Joel Galenson7bace412021-09-22 14:05:35 -070058 cargo_env_compat: true,
David LeGare2ef8bcb2022-03-02 16:21:14 +000059 cargo_pkg_version: "0.4.3",
Yiming Jing83fca392021-07-16 13:50:40 -070060 srcs: [
61 "src/lib.rs",
62 ":copy_num-bigint_build_out",
63 ],
64 edition: "2018",
65 features: [
66 "default",
67 "std",
68 ],
69 cfgs: [
70 "has_try_from",
71 "u64_digit",
72 ],
73 rustlibs: [
74 "libnum_integer",
75 "libnum_traits",
76 ],
77}
78
Joel Galenson5eb82942021-11-29 14:04:27 -080079rust_test {
80 name: "num-bigint_test_src_lib",
81 host_supported: true,
Yiming Jing83fca392021-07-16 13:50:40 -070082 crate_name: "num_bigint",
Joel Galenson5eb82942021-11-29 14:04:27 -080083 cargo_env_compat: true,
David LeGare2ef8bcb2022-03-02 16:21:14 +000084 cargo_pkg_version: "0.4.3",
Yiming Jing83fca392021-07-16 13:50:40 -070085 srcs: [
86 "src/lib.rs",
87 ":copy_num-bigint_build_out",
88 ],
89 test_suites: ["general-tests"],
90 auto_gen_config: true,
Joel Galenson5eb82942021-11-29 14:04:27 -080091 test_options: {
92 unit_test: true,
93 },
Yiming Jing83fca392021-07-16 13:50:40 -070094 edition: "2018",
95 features: [
96 "default",
97 "std",
98 ],
99 cfgs: [
100 "has_try_from",
101 "u64_digit",
102 ],
103 rustlibs: [
104 "libnum_integer",
105 "libnum_traits",
106 ],
107}
108
Yiming Jing83fca392021-07-16 13:50:40 -0700109rust_defaults {
Joel Galenson5eb82942021-11-29 14:04:27 -0800110 name: "num-bigint_test_defaults",
Yiming Jing83fca392021-07-16 13:50:40 -0700111 crate_name: "num_bigint",
Joel Galenson7bace412021-09-22 14:05:35 -0700112 cargo_env_compat: true,
David LeGare2ef8bcb2022-03-02 16:21:14 +0000113 cargo_pkg_version: "0.4.3",
Yiming Jing83fca392021-07-16 13:50:40 -0700114 test_suites: ["general-tests"],
115 auto_gen_config: true,
116 edition: "2018",
117 features: [
118 "default",
119 "std",
120 ],
121 cfgs: [
122 "has_try_from",
123 "u64_digit",
124 ],
125 rustlibs: [
126 "libnum_bigint",
127 "libnum_integer",
128 "libnum_traits",
129 ],
130}
131
Joel Galenson5eb82942021-11-29 14:04:27 -0800132rust_test {
133 name: "num-bigint_test_tests_bigint",
134 defaults: ["num-bigint_test_defaults"],
135 host_supported: true,
Yiming Jing83fca392021-07-16 13:50:40 -0700136 srcs: [
137 "tests/bigint.rs",
138 ":copy_num-bigint_build_out",
139 ],
140 test_options: {
141 unit_test: true,
142 },
143}
144
145rust_test {
Joel Galenson5eb82942021-11-29 14:04:27 -0800146 name: "num-bigint_test_tests_bigint_bitwise",
147 defaults: ["num-bigint_test_defaults"],
148 host_supported: true,
Yiming Jing83fca392021-07-16 13:50:40 -0700149 srcs: [
150 "tests/bigint_bitwise.rs",
151 ":copy_num-bigint_build_out",
152 ],
153 test_options: {
154 unit_test: true,
155 },
156}
157
158rust_test {
Joel Galenson5eb82942021-11-29 14:04:27 -0800159 name: "num-bigint_test_tests_bigint_scalar",
160 defaults: ["num-bigint_test_defaults"],
161 host_supported: true,
Yiming Jing83fca392021-07-16 13:50:40 -0700162 srcs: [
163 "tests/bigint_scalar.rs",
164 ":copy_num-bigint_build_out",
165 ],
166 test_options: {
167 unit_test: true,
168 },
169}
170
171rust_test {
Joel Galenson5eb82942021-11-29 14:04:27 -0800172 name: "num-bigint_test_tests_biguint",
173 defaults: ["num-bigint_test_defaults"],
174 host_supported: true,
Yiming Jing83fca392021-07-16 13:50:40 -0700175 srcs: [
176 "tests/biguint.rs",
177 ":copy_num-bigint_build_out",
178 ],
179 test_options: {
180 unit_test: true,
181 },
182}
183
184rust_test {
Joel Galenson5eb82942021-11-29 14:04:27 -0800185 name: "num-bigint_test_tests_biguint_scalar",
186 defaults: ["num-bigint_test_defaults"],
187 host_supported: true,
Yiming Jing83fca392021-07-16 13:50:40 -0700188 srcs: [
189 "tests/biguint_scalar.rs",
190 ":copy_num-bigint_build_out",
191 ],
192 test_options: {
193 unit_test: true,
194 },
195}
196
197rust_test {
David LeGare2ef8bcb2022-03-02 16:21:14 +0000198 name: "num-bigint_test_tests_fuzzed",
199 defaults: ["num-bigint_test_defaults"],
200 host_supported: true,
201 srcs: [
202 "tests/fuzzed.rs",
203 ":copy_num-bigint_build_out",
204 ],
205 test_options: {
206 unit_test: true,
207 },
208}
209
210rust_test {
Joel Galenson5eb82942021-11-29 14:04:27 -0800211 name: "num-bigint_test_tests_modpow",
212 defaults: ["num-bigint_test_defaults"],
213 host_supported: true,
Yiming Jing83fca392021-07-16 13:50:40 -0700214 srcs: [
215 "tests/modpow.rs",
216 ":copy_num-bigint_build_out",
217 ],
218 test_options: {
219 unit_test: true,
220 },
221}
222
223rust_test {
Joel Galenson5eb82942021-11-29 14:04:27 -0800224 name: "num-bigint_test_tests_roots",
225 defaults: ["num-bigint_test_defaults"],
226 host_supported: true,
Yiming Jing83fca392021-07-16 13:50:40 -0700227 srcs: [
228 "tests/roots.rs",
229 ":copy_num-bigint_build_out",
230 ],
231 test_options: {
232 unit_test: true,
233 },
234}