Joel Galenson | 4598ab4 | 2021-11-29 14:04:22 -0800 | [diff] [blame] | 1 | // This file is generated by cargo2android.py --config cargo2android.json. |
Joel Galenson | 4b9e120 | 2021-09-28 09:40:26 -0700 | [diff] [blame] | 2 | // Do not modify this file as changes will be overridden on upgrade. |
| 3 | |
Bob Badour | 09dcad1 | 2021-10-14 15:31:09 -0700 | [diff] [blame] | 4 | package { |
| 5 | default_applicable_licenses: [ |
| 6 | "external_rust_crates_minimal-lexical_license", |
| 7 | ], |
| 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 |
| 29 | license { |
| 30 | name: "external_rust_crates_minimal-lexical_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 | |
Joel Galenson | 4b9e120 | 2021-09-28 09:40:26 -0700 | [diff] [blame] | 43 | rust_library { |
| 44 | name: "libminimal_lexical", |
| 45 | host_supported: true, |
| 46 | crate_name: "minimal_lexical", |
| 47 | cargo_env_compat: true, |
David LeGare | d3868b8 | 2022-03-02 16:21:10 +0000 | [diff] [blame] | 48 | cargo_pkg_version: "0.2.1", |
Joel Galenson | 4b9e120 | 2021-09-28 09:40:26 -0700 | [diff] [blame] | 49 | srcs: ["src/lib.rs"], |
| 50 | edition: "2018", |
| 51 | features: [ |
| 52 | "default", |
| 53 | "std", |
| 54 | ], |
| 55 | } |
| 56 | |
| 57 | rust_defaults { |
| 58 | name: "minimal-lexical_test_defaults", |
| 59 | crate_name: "minimal_lexical", |
Joel Galenson | 4b9e120 | 2021-09-28 09:40:26 -0700 | [diff] [blame] | 60 | cargo_env_compat: true, |
David LeGare | d3868b8 | 2022-03-02 16:21:10 +0000 | [diff] [blame] | 61 | cargo_pkg_version: "0.2.1", |
Joel Galenson | 4b9e120 | 2021-09-28 09:40:26 -0700 | [diff] [blame] | 62 | test_suites: ["general-tests"], |
| 63 | auto_gen_config: true, |
| 64 | edition: "2018", |
| 65 | features: [ |
| 66 | "default", |
| 67 | "std", |
| 68 | ], |
| 69 | rustlibs: [ |
| 70 | "libminimal_lexical", |
| 71 | ], |
| 72 | } |
| 73 | |
Joel Galenson | 4b9e120 | 2021-09-28 09:40:26 -0700 | [diff] [blame] | 74 | rust_test { |
Joel Galenson | 4598ab4 | 2021-11-29 14:04:22 -0800 | [diff] [blame] | 75 | name: "minimal-lexical_test_tests_integration_tests", |
| 76 | defaults: ["minimal-lexical_test_defaults"], |
| 77 | host_supported: true, |
Joel Galenson | 4b9e120 | 2021-09-28 09:40:26 -0700 | [diff] [blame] | 78 | srcs: ["tests/integration_tests.rs"], |
| 79 | test_options: { |
| 80 | unit_test: true, |
| 81 | }, |
| 82 | } |
| 83 | |
| 84 | rust_test { |
Joel Galenson | 4598ab4 | 2021-11-29 14:04:22 -0800 | [diff] [blame] | 85 | name: "minimal-lexical_test_tests_lemire_tests", |
| 86 | defaults: ["minimal-lexical_test_defaults"], |
| 87 | host_supported: true, |
Joel Galenson | 4b9e120 | 2021-09-28 09:40:26 -0700 | [diff] [blame] | 88 | srcs: ["tests/lemire_tests.rs"], |
| 89 | test_options: { |
| 90 | unit_test: true, |
| 91 | }, |
| 92 | } |
| 93 | |
| 94 | rust_test { |
Joel Galenson | 4598ab4 | 2021-11-29 14:04:22 -0800 | [diff] [blame] | 95 | name: "minimal-lexical_test_tests_mask_tests", |
| 96 | defaults: ["minimal-lexical_test_defaults"], |
| 97 | host_supported: true, |
Joel Galenson | 4b9e120 | 2021-09-28 09:40:26 -0700 | [diff] [blame] | 98 | srcs: ["tests/mask_tests.rs"], |
| 99 | test_options: { |
| 100 | unit_test: true, |
| 101 | }, |
| 102 | } |
| 103 | |
| 104 | rust_test { |
Joel Galenson | 4598ab4 | 2021-11-29 14:04:22 -0800 | [diff] [blame] | 105 | name: "minimal-lexical_test_tests_number_tests", |
| 106 | defaults: ["minimal-lexical_test_defaults"], |
| 107 | host_supported: true, |
Joel Galenson | 4b9e120 | 2021-09-28 09:40:26 -0700 | [diff] [blame] | 108 | srcs: ["tests/number_tests.rs"], |
| 109 | test_options: { |
| 110 | unit_test: true, |
| 111 | }, |
| 112 | } |
| 113 | |
| 114 | rust_test { |
Joel Galenson | 4598ab4 | 2021-11-29 14:04:22 -0800 | [diff] [blame] | 115 | name: "minimal-lexical_test_tests_parse_tests", |
| 116 | defaults: ["minimal-lexical_test_defaults"], |
| 117 | host_supported: true, |
Joel Galenson | 4b9e120 | 2021-09-28 09:40:26 -0700 | [diff] [blame] | 118 | srcs: ["tests/parse_tests.rs"], |
| 119 | test_options: { |
| 120 | unit_test: true, |
| 121 | }, |
| 122 | } |
| 123 | |
| 124 | rust_test { |
Joel Galenson | 4598ab4 | 2021-11-29 14:04:22 -0800 | [diff] [blame] | 125 | name: "minimal-lexical_test_tests_rounding_tests", |
| 126 | defaults: ["minimal-lexical_test_defaults"], |
| 127 | host_supported: true, |
Joel Galenson | 4b9e120 | 2021-09-28 09:40:26 -0700 | [diff] [blame] | 128 | srcs: ["tests/rounding_tests.rs"], |
| 129 | test_options: { |
| 130 | unit_test: true, |
| 131 | }, |
| 132 | } |
| 133 | |
| 134 | rust_test { |
Joel Galenson | 4598ab4 | 2021-11-29 14:04:22 -0800 | [diff] [blame] | 135 | name: "minimal-lexical_test_tests_slow_tests", |
| 136 | defaults: ["minimal-lexical_test_defaults"], |
| 137 | host_supported: true, |
Joel Galenson | 4b9e120 | 2021-09-28 09:40:26 -0700 | [diff] [blame] | 138 | srcs: ["tests/slow_tests.rs"], |
| 139 | test_options: { |
| 140 | unit_test: true, |
| 141 | }, |
| 142 | } |
| 143 | |
| 144 | rust_test { |
Joel Galenson | 4598ab4 | 2021-11-29 14:04:22 -0800 | [diff] [blame] | 145 | name: "minimal-lexical_test_tests_vec_tests", |
| 146 | defaults: ["minimal-lexical_test_defaults"], |
| 147 | host_supported: true, |
Joel Galenson | 4b9e120 | 2021-09-28 09:40:26 -0700 | [diff] [blame] | 148 | srcs: ["tests/vec_tests.rs"], |
| 149 | test_options: { |
| 150 | unit_test: true, |
| 151 | }, |
| 152 | } |