blob: f9f123a2f866b92e5ef73a15cf8a0638ee0c8167 [file] [log] [blame]
Joel Galenson4598ab42021-11-29 14:04:22 -08001// This file is generated by cargo2android.py --config cargo2android.json.
Joel Galenson4b9e1202021-09-28 09:40:26 -07002// Do not modify this file as changes will be overridden on upgrade.
3
Bob Badour09dcad12021-10-14 15:31:09 -07004package {
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
29license {
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 Galenson4b9e1202021-09-28 09:40:26 -070043rust_library {
44 name: "libminimal_lexical",
45 host_supported: true,
46 crate_name: "minimal_lexical",
47 cargo_env_compat: true,
David LeGared3868b82022-03-02 16:21:10 +000048 cargo_pkg_version: "0.2.1",
Joel Galenson4b9e1202021-09-28 09:40:26 -070049 srcs: ["src/lib.rs"],
50 edition: "2018",
51 features: [
52 "default",
53 "std",
54 ],
55}
56
57rust_defaults {
58 name: "minimal-lexical_test_defaults",
59 crate_name: "minimal_lexical",
Joel Galenson4b9e1202021-09-28 09:40:26 -070060 cargo_env_compat: true,
David LeGared3868b82022-03-02 16:21:10 +000061 cargo_pkg_version: "0.2.1",
Joel Galenson4b9e1202021-09-28 09:40:26 -070062 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 Galenson4b9e1202021-09-28 09:40:26 -070074rust_test {
Joel Galenson4598ab42021-11-29 14:04:22 -080075 name: "minimal-lexical_test_tests_integration_tests",
76 defaults: ["minimal-lexical_test_defaults"],
77 host_supported: true,
Joel Galenson4b9e1202021-09-28 09:40:26 -070078 srcs: ["tests/integration_tests.rs"],
79 test_options: {
80 unit_test: true,
81 },
82}
83
84rust_test {
Joel Galenson4598ab42021-11-29 14:04:22 -080085 name: "minimal-lexical_test_tests_lemire_tests",
86 defaults: ["minimal-lexical_test_defaults"],
87 host_supported: true,
Joel Galenson4b9e1202021-09-28 09:40:26 -070088 srcs: ["tests/lemire_tests.rs"],
89 test_options: {
90 unit_test: true,
91 },
92}
93
94rust_test {
Joel Galenson4598ab42021-11-29 14:04:22 -080095 name: "minimal-lexical_test_tests_mask_tests",
96 defaults: ["minimal-lexical_test_defaults"],
97 host_supported: true,
Joel Galenson4b9e1202021-09-28 09:40:26 -070098 srcs: ["tests/mask_tests.rs"],
99 test_options: {
100 unit_test: true,
101 },
102}
103
104rust_test {
Joel Galenson4598ab42021-11-29 14:04:22 -0800105 name: "minimal-lexical_test_tests_number_tests",
106 defaults: ["minimal-lexical_test_defaults"],
107 host_supported: true,
Joel Galenson4b9e1202021-09-28 09:40:26 -0700108 srcs: ["tests/number_tests.rs"],
109 test_options: {
110 unit_test: true,
111 },
112}
113
114rust_test {
Joel Galenson4598ab42021-11-29 14:04:22 -0800115 name: "minimal-lexical_test_tests_parse_tests",
116 defaults: ["minimal-lexical_test_defaults"],
117 host_supported: true,
Joel Galenson4b9e1202021-09-28 09:40:26 -0700118 srcs: ["tests/parse_tests.rs"],
119 test_options: {
120 unit_test: true,
121 },
122}
123
124rust_test {
Joel Galenson4598ab42021-11-29 14:04:22 -0800125 name: "minimal-lexical_test_tests_rounding_tests",
126 defaults: ["minimal-lexical_test_defaults"],
127 host_supported: true,
Joel Galenson4b9e1202021-09-28 09:40:26 -0700128 srcs: ["tests/rounding_tests.rs"],
129 test_options: {
130 unit_test: true,
131 },
132}
133
134rust_test {
Joel Galenson4598ab42021-11-29 14:04:22 -0800135 name: "minimal-lexical_test_tests_slow_tests",
136 defaults: ["minimal-lexical_test_defaults"],
137 host_supported: true,
Joel Galenson4b9e1202021-09-28 09:40:26 -0700138 srcs: ["tests/slow_tests.rs"],
139 test_options: {
140 unit_test: true,
141 },
142}
143
144rust_test {
Joel Galenson4598ab42021-11-29 14:04:22 -0800145 name: "minimal-lexical_test_tests_vec_tests",
146 defaults: ["minimal-lexical_test_defaults"],
147 host_supported: true,
Joel Galenson4b9e1202021-09-28 09:40:26 -0700148 srcs: ["tests/vec_tests.rs"],
149 test_options: {
150 unit_test: true,
151 },
152}