blob: 383d847f27bc27803f0d831558e5f0af54d2b816 [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 ],
Josh Wu0b390442022-07-28 16:46:22 +080077 vendor_available: true,
Yiming Jing83fca392021-07-16 13:50:40 -070078}
79
Joel Galenson5eb82942021-11-29 14:04:27 -080080rust_test {
81 name: "num-bigint_test_src_lib",
82 host_supported: true,
Yiming Jing83fca392021-07-16 13:50:40 -070083 crate_name: "num_bigint",
Joel Galenson5eb82942021-11-29 14:04:27 -080084 cargo_env_compat: true,
David LeGare2ef8bcb2022-03-02 16:21:14 +000085 cargo_pkg_version: "0.4.3",
Yiming Jing83fca392021-07-16 13:50:40 -070086 srcs: [
87 "src/lib.rs",
88 ":copy_num-bigint_build_out",
89 ],
90 test_suites: ["general-tests"],
91 auto_gen_config: true,
Joel Galenson5eb82942021-11-29 14:04:27 -080092 test_options: {
93 unit_test: true,
94 },
Yiming Jing83fca392021-07-16 13:50:40 -070095 edition: "2018",
96 features: [
97 "default",
98 "std",
99 ],
100 cfgs: [
101 "has_try_from",
102 "u64_digit",
103 ],
104 rustlibs: [
105 "libnum_integer",
106 "libnum_traits",
107 ],
108}
109
Yiming Jing83fca392021-07-16 13:50:40 -0700110rust_defaults {
Joel Galenson5eb82942021-11-29 14:04:27 -0800111 name: "num-bigint_test_defaults",
Yiming Jing83fca392021-07-16 13:50:40 -0700112 crate_name: "num_bigint",
Joel Galenson7bace412021-09-22 14:05:35 -0700113 cargo_env_compat: true,
David LeGare2ef8bcb2022-03-02 16:21:14 +0000114 cargo_pkg_version: "0.4.3",
Yiming Jing83fca392021-07-16 13:50:40 -0700115 test_suites: ["general-tests"],
116 auto_gen_config: true,
117 edition: "2018",
118 features: [
119 "default",
120 "std",
121 ],
122 cfgs: [
123 "has_try_from",
124 "u64_digit",
125 ],
126 rustlibs: [
127 "libnum_bigint",
128 "libnum_integer",
129 "libnum_traits",
130 ],
131}
132
Joel Galenson5eb82942021-11-29 14:04:27 -0800133rust_test {
134 name: "num-bigint_test_tests_bigint",
135 defaults: ["num-bigint_test_defaults"],
136 host_supported: true,
Yiming Jing83fca392021-07-16 13:50:40 -0700137 srcs: [
138 "tests/bigint.rs",
139 ":copy_num-bigint_build_out",
140 ],
141 test_options: {
142 unit_test: true,
143 },
144}
145
146rust_test {
Joel Galenson5eb82942021-11-29 14:04:27 -0800147 name: "num-bigint_test_tests_bigint_bitwise",
148 defaults: ["num-bigint_test_defaults"],
149 host_supported: true,
Yiming Jing83fca392021-07-16 13:50:40 -0700150 srcs: [
151 "tests/bigint_bitwise.rs",
152 ":copy_num-bigint_build_out",
153 ],
154 test_options: {
155 unit_test: true,
156 },
157}
158
159rust_test {
Joel Galenson5eb82942021-11-29 14:04:27 -0800160 name: "num-bigint_test_tests_bigint_scalar",
161 defaults: ["num-bigint_test_defaults"],
162 host_supported: true,
Yiming Jing83fca392021-07-16 13:50:40 -0700163 srcs: [
164 "tests/bigint_scalar.rs",
165 ":copy_num-bigint_build_out",
166 ],
167 test_options: {
168 unit_test: true,
169 },
170}
171
172rust_test {
Joel Galenson5eb82942021-11-29 14:04:27 -0800173 name: "num-bigint_test_tests_biguint",
174 defaults: ["num-bigint_test_defaults"],
175 host_supported: true,
Yiming Jing83fca392021-07-16 13:50:40 -0700176 srcs: [
177 "tests/biguint.rs",
178 ":copy_num-bigint_build_out",
179 ],
180 test_options: {
181 unit_test: true,
182 },
183}
184
185rust_test {
Joel Galenson5eb82942021-11-29 14:04:27 -0800186 name: "num-bigint_test_tests_biguint_scalar",
187 defaults: ["num-bigint_test_defaults"],
188 host_supported: true,
Yiming Jing83fca392021-07-16 13:50:40 -0700189 srcs: [
190 "tests/biguint_scalar.rs",
191 ":copy_num-bigint_build_out",
192 ],
193 test_options: {
194 unit_test: true,
195 },
196}
197
198rust_test {
David LeGare2ef8bcb2022-03-02 16:21:14 +0000199 name: "num-bigint_test_tests_fuzzed",
200 defaults: ["num-bigint_test_defaults"],
201 host_supported: true,
202 srcs: [
203 "tests/fuzzed.rs",
204 ":copy_num-bigint_build_out",
205 ],
206 test_options: {
207 unit_test: true,
208 },
209}
210
211rust_test {
Joel Galenson5eb82942021-11-29 14:04:27 -0800212 name: "num-bigint_test_tests_modpow",
213 defaults: ["num-bigint_test_defaults"],
214 host_supported: true,
Yiming Jing83fca392021-07-16 13:50:40 -0700215 srcs: [
216 "tests/modpow.rs",
217 ":copy_num-bigint_build_out",
218 ],
219 test_options: {
220 unit_test: true,
221 },
222}
223
224rust_test {
Joel Galenson5eb82942021-11-29 14:04:27 -0800225 name: "num-bigint_test_tests_roots",
226 defaults: ["num-bigint_test_defaults"],
227 host_supported: true,
Yiming Jing83fca392021-07-16 13:50:40 -0700228 srcs: [
229 "tests/roots.rs",
230 ":copy_num-bigint_build_out",
231 ],
232 test_options: {
233 unit_test: true,
234 },
235}