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