Yiming Jing | 83fca39 | 2021-07-16 13:50:40 -0700 | [diff] [blame] | 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 | |
Bob Badour | d0f6e07 | 2021-08-02 13:02:38 -0700 | [diff] [blame] | 4 | package { |
| 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 |
| 27 | license { |
| 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 Jing | 83fca39 | 2021-07-16 13:50:40 -0700 | [diff] [blame] | 41 | genrule { |
| 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 | |
| 54 | rust_library { |
| 55 | name: "libnum_bigint", |
| 56 | host_supported: true, |
| 57 | crate_name: "num_bigint", |
Joel Galenson | 7bace41 | 2021-09-22 14:05:35 -0700 | [diff] [blame] | 58 | cargo_env_compat: true, |
David LeGare | 2ef8bcb | 2022-03-02 16:21:14 +0000 | [diff] [blame] | 59 | cargo_pkg_version: "0.4.3", |
Yiming Jing | 83fca39 | 2021-07-16 13:50:40 -0700 | [diff] [blame] | 60 | 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 Galenson | 5eb8294 | 2021-11-29 14:04:27 -0800 | [diff] [blame] | 79 | rust_test { |
| 80 | name: "num-bigint_test_src_lib", |
| 81 | host_supported: true, |
Yiming Jing | 83fca39 | 2021-07-16 13:50:40 -0700 | [diff] [blame] | 82 | crate_name: "num_bigint", |
Joel Galenson | 5eb8294 | 2021-11-29 14:04:27 -0800 | [diff] [blame] | 83 | cargo_env_compat: true, |
David LeGare | 2ef8bcb | 2022-03-02 16:21:14 +0000 | [diff] [blame] | 84 | cargo_pkg_version: "0.4.3", |
Yiming Jing | 83fca39 | 2021-07-16 13:50:40 -0700 | [diff] [blame] | 85 | srcs: [ |
| 86 | "src/lib.rs", |
| 87 | ":copy_num-bigint_build_out", |
| 88 | ], |
| 89 | test_suites: ["general-tests"], |
| 90 | auto_gen_config: true, |
Joel Galenson | 5eb8294 | 2021-11-29 14:04:27 -0800 | [diff] [blame] | 91 | test_options: { |
| 92 | unit_test: true, |
| 93 | }, |
Yiming Jing | 83fca39 | 2021-07-16 13:50:40 -0700 | [diff] [blame] | 94 | 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 Jing | 83fca39 | 2021-07-16 13:50:40 -0700 | [diff] [blame] | 109 | rust_defaults { |
Joel Galenson | 5eb8294 | 2021-11-29 14:04:27 -0800 | [diff] [blame] | 110 | name: "num-bigint_test_defaults", |
Yiming Jing | 83fca39 | 2021-07-16 13:50:40 -0700 | [diff] [blame] | 111 | crate_name: "num_bigint", |
Joel Galenson | 7bace41 | 2021-09-22 14:05:35 -0700 | [diff] [blame] | 112 | cargo_env_compat: true, |
David LeGare | 2ef8bcb | 2022-03-02 16:21:14 +0000 | [diff] [blame] | 113 | cargo_pkg_version: "0.4.3", |
Yiming Jing | 83fca39 | 2021-07-16 13:50:40 -0700 | [diff] [blame] | 114 | 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 Galenson | 5eb8294 | 2021-11-29 14:04:27 -0800 | [diff] [blame] | 132 | rust_test { |
| 133 | name: "num-bigint_test_tests_bigint", |
| 134 | defaults: ["num-bigint_test_defaults"], |
| 135 | host_supported: true, |
Yiming Jing | 83fca39 | 2021-07-16 13:50:40 -0700 | [diff] [blame] | 136 | srcs: [ |
| 137 | "tests/bigint.rs", |
| 138 | ":copy_num-bigint_build_out", |
| 139 | ], |
| 140 | test_options: { |
| 141 | unit_test: true, |
| 142 | }, |
| 143 | } |
| 144 | |
| 145 | rust_test { |
Joel Galenson | 5eb8294 | 2021-11-29 14:04:27 -0800 | [diff] [blame] | 146 | name: "num-bigint_test_tests_bigint_bitwise", |
| 147 | defaults: ["num-bigint_test_defaults"], |
| 148 | host_supported: true, |
Yiming Jing | 83fca39 | 2021-07-16 13:50:40 -0700 | [diff] [blame] | 149 | srcs: [ |
| 150 | "tests/bigint_bitwise.rs", |
| 151 | ":copy_num-bigint_build_out", |
| 152 | ], |
| 153 | test_options: { |
| 154 | unit_test: true, |
| 155 | }, |
| 156 | } |
| 157 | |
| 158 | rust_test { |
Joel Galenson | 5eb8294 | 2021-11-29 14:04:27 -0800 | [diff] [blame] | 159 | name: "num-bigint_test_tests_bigint_scalar", |
| 160 | defaults: ["num-bigint_test_defaults"], |
| 161 | host_supported: true, |
Yiming Jing | 83fca39 | 2021-07-16 13:50:40 -0700 | [diff] [blame] | 162 | srcs: [ |
| 163 | "tests/bigint_scalar.rs", |
| 164 | ":copy_num-bigint_build_out", |
| 165 | ], |
| 166 | test_options: { |
| 167 | unit_test: true, |
| 168 | }, |
| 169 | } |
| 170 | |
| 171 | rust_test { |
Joel Galenson | 5eb8294 | 2021-11-29 14:04:27 -0800 | [diff] [blame] | 172 | name: "num-bigint_test_tests_biguint", |
| 173 | defaults: ["num-bigint_test_defaults"], |
| 174 | host_supported: true, |
Yiming Jing | 83fca39 | 2021-07-16 13:50:40 -0700 | [diff] [blame] | 175 | srcs: [ |
| 176 | "tests/biguint.rs", |
| 177 | ":copy_num-bigint_build_out", |
| 178 | ], |
| 179 | test_options: { |
| 180 | unit_test: true, |
| 181 | }, |
| 182 | } |
| 183 | |
| 184 | rust_test { |
Joel Galenson | 5eb8294 | 2021-11-29 14:04:27 -0800 | [diff] [blame] | 185 | name: "num-bigint_test_tests_biguint_scalar", |
| 186 | defaults: ["num-bigint_test_defaults"], |
| 187 | host_supported: true, |
Yiming Jing | 83fca39 | 2021-07-16 13:50:40 -0700 | [diff] [blame] | 188 | srcs: [ |
| 189 | "tests/biguint_scalar.rs", |
| 190 | ":copy_num-bigint_build_out", |
| 191 | ], |
| 192 | test_options: { |
| 193 | unit_test: true, |
| 194 | }, |
| 195 | } |
| 196 | |
| 197 | rust_test { |
David LeGare | 2ef8bcb | 2022-03-02 16:21:14 +0000 | [diff] [blame] | 198 | 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 | |
| 210 | rust_test { |
Joel Galenson | 5eb8294 | 2021-11-29 14:04:27 -0800 | [diff] [blame] | 211 | name: "num-bigint_test_tests_modpow", |
| 212 | defaults: ["num-bigint_test_defaults"], |
| 213 | host_supported: true, |
Yiming Jing | 83fca39 | 2021-07-16 13:50:40 -0700 | [diff] [blame] | 214 | srcs: [ |
| 215 | "tests/modpow.rs", |
| 216 | ":copy_num-bigint_build_out", |
| 217 | ], |
| 218 | test_options: { |
| 219 | unit_test: true, |
| 220 | }, |
| 221 | } |
| 222 | |
| 223 | rust_test { |
Joel Galenson | 5eb8294 | 2021-11-29 14:04:27 -0800 | [diff] [blame] | 224 | name: "num-bigint_test_tests_roots", |
| 225 | defaults: ["num-bigint_test_defaults"], |
| 226 | host_supported: true, |
Yiming Jing | 83fca39 | 2021-07-16 13:50:40 -0700 | [diff] [blame] | 227 | srcs: [ |
| 228 | "tests/roots.rs", |
| 229 | ":copy_num-bigint_build_out", |
| 230 | ], |
| 231 | test_options: { |
| 232 | unit_test: true, |
| 233 | }, |
| 234 | } |