• 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: ["external_rust_crates_num-bigint_license"],
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_num-bigint_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-APACHE",
39        "LICENSE-MIT",
40    ],
41}
42
43genrule {
44    name: "copy_num-bigint_build_out",
45    srcs: ["out/*"],
46    cmd: "cp $(in) $(genDir)",
47    out: [
48        "probe0.ll",
49        "probe1.ll",
50        "probe2.ll",
51        "probe3.ll",
52        "radix_bases.rs",
53    ],
54}
55
56rust_library {
57    name: "libnum_bigint",
58    host_supported: true,
59    crate_name: "num_bigint",
60    cargo_env_compat: true,
61    cargo_pkg_version: "0.4.4",
62    crate_root: "src/lib.rs",
63    srcs: [":copy_num-bigint_build_out"],
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    apex_available: [
78        "//apex_available:platform",
79        "com.android.virt",
80    ],
81    product_available: true,
82    vendor_available: true,
83}
84
85rust_test {
86    name: "num-bigint_test_src_lib",
87    host_supported: true,
88    crate_name: "num_bigint",
89    cargo_env_compat: true,
90    cargo_pkg_version: "0.4.4",
91    crate_root: "src/lib.rs",
92    srcs: [":copy_num-bigint_build_out"],
93    test_suites: ["general-tests"],
94    auto_gen_config: true,
95    test_options: {
96        unit_test: true,
97    },
98    edition: "2018",
99    features: [
100        "default",
101        "std",
102    ],
103    cfgs: [
104        "has_try_from",
105        "u64_digit",
106    ],
107    rustlibs: [
108        "libnum_integer",
109        "libnum_traits",
110    ],
111}
112
113rust_test {
114    name: "num-bigint_test_tests_bigint",
115    host_supported: true,
116    crate_name: "bigint",
117    cargo_env_compat: true,
118    cargo_pkg_version: "0.4.4",
119    crate_root: "tests/bigint.rs",
120    srcs: [":copy_num-bigint_build_out"],
121    test_suites: ["general-tests"],
122    auto_gen_config: true,
123    test_options: {
124        unit_test: true,
125    },
126    edition: "2018",
127    features: [
128        "default",
129        "std",
130    ],
131    cfgs: [
132        "has_try_from",
133        "u64_digit",
134    ],
135    rustlibs: [
136        "libnum_bigint",
137        "libnum_integer",
138        "libnum_traits",
139    ],
140}
141
142rust_test {
143    name: "num-bigint_test_tests_bigint_bitwise",
144    host_supported: true,
145    crate_name: "bigint_bitwise",
146    cargo_env_compat: true,
147    cargo_pkg_version: "0.4.4",
148    crate_root: "tests/bigint_bitwise.rs",
149    srcs: [":copy_num-bigint_build_out"],
150    test_suites: ["general-tests"],
151    auto_gen_config: true,
152    test_options: {
153        unit_test: true,
154    },
155    edition: "2018",
156    features: [
157        "default",
158        "std",
159    ],
160    cfgs: [
161        "has_try_from",
162        "u64_digit",
163    ],
164    rustlibs: [
165        "libnum_bigint",
166        "libnum_integer",
167        "libnum_traits",
168    ],
169}
170
171rust_test {
172    name: "num-bigint_test_tests_bigint_scalar",
173    host_supported: true,
174    crate_name: "bigint_scalar",
175    cargo_env_compat: true,
176    cargo_pkg_version: "0.4.4",
177    crate_root: "tests/bigint_scalar.rs",
178    srcs: [":copy_num-bigint_build_out"],
179    test_suites: ["general-tests"],
180    auto_gen_config: true,
181    test_options: {
182        unit_test: true,
183    },
184    edition: "2018",
185    features: [
186        "default",
187        "std",
188    ],
189    cfgs: [
190        "has_try_from",
191        "u64_digit",
192    ],
193    rustlibs: [
194        "libnum_bigint",
195        "libnum_integer",
196        "libnum_traits",
197    ],
198}
199
200rust_test {
201    name: "num-bigint_test_tests_biguint",
202    host_supported: true,
203    crate_name: "biguint",
204    cargo_env_compat: true,
205    cargo_pkg_version: "0.4.4",
206    crate_root: "tests/biguint.rs",
207    srcs: [":copy_num-bigint_build_out"],
208    test_suites: ["general-tests"],
209    auto_gen_config: true,
210    test_options: {
211        unit_test: true,
212    },
213    edition: "2018",
214    features: [
215        "default",
216        "std",
217    ],
218    cfgs: [
219        "has_try_from",
220        "u64_digit",
221    ],
222    rustlibs: [
223        "libnum_bigint",
224        "libnum_integer",
225        "libnum_traits",
226    ],
227}
228
229rust_test {
230    name: "num-bigint_test_tests_biguint_scalar",
231    host_supported: true,
232    crate_name: "biguint_scalar",
233    cargo_env_compat: true,
234    cargo_pkg_version: "0.4.4",
235    crate_root: "tests/biguint_scalar.rs",
236    srcs: [":copy_num-bigint_build_out"],
237    test_suites: ["general-tests"],
238    auto_gen_config: true,
239    test_options: {
240        unit_test: true,
241    },
242    edition: "2018",
243    features: [
244        "default",
245        "std",
246    ],
247    cfgs: [
248        "has_try_from",
249        "u64_digit",
250    ],
251    rustlibs: [
252        "libnum_bigint",
253        "libnum_integer",
254        "libnum_traits",
255    ],
256}
257
258rust_test {
259    name: "num-bigint_test_tests_fuzzed",
260    host_supported: true,
261    crate_name: "fuzzed",
262    cargo_env_compat: true,
263    cargo_pkg_version: "0.4.4",
264    crate_root: "tests/fuzzed.rs",
265    srcs: [":copy_num-bigint_build_out"],
266    test_suites: ["general-tests"],
267    auto_gen_config: true,
268    test_options: {
269        unit_test: true,
270    },
271    edition: "2018",
272    features: [
273        "default",
274        "std",
275    ],
276    cfgs: [
277        "has_try_from",
278        "u64_digit",
279    ],
280    rustlibs: [
281        "libnum_bigint",
282        "libnum_integer",
283        "libnum_traits",
284    ],
285}
286
287rust_test {
288    name: "num-bigint_test_tests_modpow",
289    host_supported: true,
290    crate_name: "modpow",
291    cargo_env_compat: true,
292    cargo_pkg_version: "0.4.4",
293    crate_root: "tests/modpow.rs",
294    srcs: [":copy_num-bigint_build_out"],
295    test_suites: ["general-tests"],
296    auto_gen_config: true,
297    test_options: {
298        unit_test: true,
299    },
300    edition: "2018",
301    features: [
302        "default",
303        "std",
304    ],
305    cfgs: [
306        "has_try_from",
307        "u64_digit",
308    ],
309    rustlibs: [
310        "libnum_bigint",
311        "libnum_integer",
312        "libnum_traits",
313    ],
314}
315
316rust_test {
317    name: "num-bigint_test_tests_roots",
318    host_supported: true,
319    crate_name: "roots",
320    cargo_env_compat: true,
321    cargo_pkg_version: "0.4.4",
322    crate_root: "tests/roots.rs",
323    srcs: [":copy_num-bigint_build_out"],
324    test_suites: ["general-tests"],
325    auto_gen_config: true,
326    test_options: {
327        unit_test: true,
328    },
329    edition: "2018",
330    features: [
331        "default",
332        "std",
333    ],
334    cfgs: [
335        "has_try_from",
336        "u64_digit",
337    ],
338    rustlibs: [
339        "libnum_bigint",
340        "libnum_integer",
341        "libnum_traits",
342    ],
343}
344