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, |
| 59 | cargo_pkg_version: "0.4.2", |
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 | |
| 79 | rust_defaults { |
| 80 | name: "num-bigint_test_defaults", |
| 81 | crate_name: "num_bigint", |
| 82 | srcs: [ |
| 83 | "src/lib.rs", |
| 84 | ":copy_num-bigint_build_out", |
| 85 | ], |
Joel Galenson | 7bace41 | 2021-09-22 14:05:35 -0700 | [diff] [blame^] | 86 | cargo_env_compat: true, |
| 87 | cargo_pkg_version: "0.4.2", |
Yiming Jing | 83fca39 | 2021-07-16 13:50:40 -0700 | [diff] [blame] | 88 | test_suites: ["general-tests"], |
| 89 | auto_gen_config: true, |
| 90 | edition: "2018", |
| 91 | features: [ |
| 92 | "default", |
| 93 | "std", |
| 94 | ], |
| 95 | cfgs: [ |
| 96 | "has_try_from", |
| 97 | "u64_digit", |
| 98 | ], |
| 99 | rustlibs: [ |
| 100 | "libnum_integer", |
| 101 | "libnum_traits", |
| 102 | ], |
| 103 | } |
| 104 | |
| 105 | rust_test_host { |
| 106 | name: "num-bigint_host_test_src_lib", |
| 107 | defaults: ["num-bigint_test_defaults"], |
| 108 | test_options: { |
| 109 | unit_test: true, |
| 110 | }, |
| 111 | } |
| 112 | |
| 113 | rust_test { |
| 114 | name: "num-bigint_device_test_src_lib", |
| 115 | defaults: ["num-bigint_test_defaults"], |
| 116 | } |
| 117 | |
| 118 | rust_defaults { |
| 119 | name: "num-bigint_test_defaults_num_bigint", |
| 120 | crate_name: "num_bigint", |
Joel Galenson | 7bace41 | 2021-09-22 14:05:35 -0700 | [diff] [blame^] | 121 | cargo_env_compat: true, |
| 122 | cargo_pkg_version: "0.4.2", |
Yiming Jing | 83fca39 | 2021-07-16 13:50:40 -0700 | [diff] [blame] | 123 | test_suites: ["general-tests"], |
| 124 | auto_gen_config: true, |
| 125 | edition: "2018", |
| 126 | features: [ |
| 127 | "default", |
| 128 | "std", |
| 129 | ], |
| 130 | cfgs: [ |
| 131 | "has_try_from", |
| 132 | "u64_digit", |
| 133 | ], |
| 134 | rustlibs: [ |
| 135 | "libnum_bigint", |
| 136 | "libnum_integer", |
| 137 | "libnum_traits", |
| 138 | ], |
| 139 | } |
| 140 | |
| 141 | rust_test_host { |
| 142 | name: "num-bigint_host_test_tests_bigint", |
| 143 | defaults: ["num-bigint_test_defaults_num_bigint"], |
| 144 | srcs: [ |
| 145 | "tests/bigint.rs", |
| 146 | ":copy_num-bigint_build_out", |
| 147 | ], |
| 148 | test_options: { |
| 149 | unit_test: true, |
| 150 | }, |
| 151 | } |
| 152 | |
| 153 | rust_test { |
| 154 | name: "num-bigint_device_test_tests_bigint", |
| 155 | defaults: ["num-bigint_test_defaults_num_bigint"], |
| 156 | srcs: [ |
| 157 | "tests/bigint.rs", |
| 158 | ":copy_num-bigint_build_out", |
| 159 | ], |
| 160 | } |
| 161 | |
| 162 | rust_test_host { |
| 163 | name: "num-bigint_host_test_tests_bigint_bitwise", |
| 164 | defaults: ["num-bigint_test_defaults_num_bigint"], |
| 165 | srcs: [ |
| 166 | "tests/bigint_bitwise.rs", |
| 167 | ":copy_num-bigint_build_out", |
| 168 | ], |
| 169 | test_options: { |
| 170 | unit_test: true, |
| 171 | }, |
| 172 | } |
| 173 | |
| 174 | rust_test { |
| 175 | name: "num-bigint_device_test_tests_bigint_bitwise", |
| 176 | defaults: ["num-bigint_test_defaults_num_bigint"], |
| 177 | srcs: [ |
| 178 | "tests/bigint_bitwise.rs", |
| 179 | ":copy_num-bigint_build_out", |
| 180 | ], |
| 181 | } |
| 182 | |
| 183 | rust_test_host { |
| 184 | name: "num-bigint_host_test_tests_bigint_scalar", |
| 185 | defaults: ["num-bigint_test_defaults_num_bigint"], |
| 186 | srcs: [ |
| 187 | "tests/bigint_scalar.rs", |
| 188 | ":copy_num-bigint_build_out", |
| 189 | ], |
| 190 | test_options: { |
| 191 | unit_test: true, |
| 192 | }, |
| 193 | } |
| 194 | |
| 195 | rust_test { |
| 196 | name: "num-bigint_device_test_tests_bigint_scalar", |
| 197 | defaults: ["num-bigint_test_defaults_num_bigint"], |
| 198 | srcs: [ |
| 199 | "tests/bigint_scalar.rs", |
| 200 | ":copy_num-bigint_build_out", |
| 201 | ], |
| 202 | } |
| 203 | |
| 204 | rust_test_host { |
| 205 | name: "num-bigint_host_test_tests_biguint", |
| 206 | defaults: ["num-bigint_test_defaults_num_bigint"], |
| 207 | srcs: [ |
| 208 | "tests/biguint.rs", |
| 209 | ":copy_num-bigint_build_out", |
| 210 | ], |
| 211 | test_options: { |
| 212 | unit_test: true, |
| 213 | }, |
| 214 | } |
| 215 | |
| 216 | rust_test { |
| 217 | name: "num-bigint_device_test_tests_biguint", |
| 218 | defaults: ["num-bigint_test_defaults_num_bigint"], |
| 219 | srcs: [ |
| 220 | "tests/biguint.rs", |
| 221 | ":copy_num-bigint_build_out", |
| 222 | ], |
| 223 | } |
| 224 | |
| 225 | rust_test_host { |
| 226 | name: "num-bigint_host_test_tests_biguint_scalar", |
| 227 | defaults: ["num-bigint_test_defaults_num_bigint"], |
| 228 | srcs: [ |
| 229 | "tests/biguint_scalar.rs", |
| 230 | ":copy_num-bigint_build_out", |
| 231 | ], |
| 232 | test_options: { |
| 233 | unit_test: true, |
| 234 | }, |
| 235 | } |
| 236 | |
| 237 | rust_test { |
| 238 | name: "num-bigint_device_test_tests_biguint_scalar", |
| 239 | defaults: ["num-bigint_test_defaults_num_bigint"], |
| 240 | srcs: [ |
| 241 | "tests/biguint_scalar.rs", |
| 242 | ":copy_num-bigint_build_out", |
| 243 | ], |
| 244 | } |
| 245 | |
| 246 | rust_test_host { |
| 247 | name: "num-bigint_host_test_tests_modpow", |
| 248 | defaults: ["num-bigint_test_defaults_num_bigint"], |
| 249 | srcs: [ |
| 250 | "tests/modpow.rs", |
| 251 | ":copy_num-bigint_build_out", |
| 252 | ], |
| 253 | test_options: { |
| 254 | unit_test: true, |
| 255 | }, |
| 256 | } |
| 257 | |
| 258 | rust_test { |
| 259 | name: "num-bigint_device_test_tests_modpow", |
| 260 | defaults: ["num-bigint_test_defaults_num_bigint"], |
| 261 | srcs: [ |
| 262 | "tests/modpow.rs", |
| 263 | ":copy_num-bigint_build_out", |
| 264 | ], |
| 265 | } |
| 266 | |
| 267 | rust_test_host { |
| 268 | name: "num-bigint_host_test_tests_roots", |
| 269 | defaults: ["num-bigint_test_defaults_num_bigint"], |
| 270 | srcs: [ |
| 271 | "tests/roots.rs", |
| 272 | ":copy_num-bigint_build_out", |
| 273 | ], |
| 274 | test_options: { |
| 275 | unit_test: true, |
| 276 | }, |
| 277 | } |
| 278 | |
| 279 | rust_test { |
| 280 | name: "num-bigint_device_test_tests_roots", |
| 281 | defaults: ["num-bigint_test_defaults_num_bigint"], |
| 282 | srcs: [ |
| 283 | "tests/roots.rs", |
| 284 | ":copy_num-bigint_build_out", |
| 285 | ], |
| 286 | } |