• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
4package {
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
43rust_library {
44    name: "libminimal_lexical",
45    host_supported: true,
46    crate_name: "minimal_lexical",
47    cargo_env_compat: true,
48    cargo_pkg_version: "0.2.1",
49    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",
60    cargo_env_compat: true,
61    cargo_pkg_version: "0.2.1",
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
74rust_test {
75    name: "minimal-lexical_test_tests_integration_tests",
76    defaults: ["minimal-lexical_test_defaults"],
77    host_supported: true,
78    srcs: ["tests/integration_tests.rs"],
79    test_options: {
80        unit_test: true,
81    },
82}
83
84rust_test {
85    name: "minimal-lexical_test_tests_lemire_tests",
86    defaults: ["minimal-lexical_test_defaults"],
87    host_supported: true,
88    srcs: ["tests/lemire_tests.rs"],
89    test_options: {
90        unit_test: true,
91    },
92}
93
94rust_test {
95    name: "minimal-lexical_test_tests_mask_tests",
96    defaults: ["minimal-lexical_test_defaults"],
97    host_supported: true,
98    srcs: ["tests/mask_tests.rs"],
99    test_options: {
100        unit_test: true,
101    },
102}
103
104rust_test {
105    name: "minimal-lexical_test_tests_number_tests",
106    defaults: ["minimal-lexical_test_defaults"],
107    host_supported: true,
108    srcs: ["tests/number_tests.rs"],
109    test_options: {
110        unit_test: true,
111    },
112}
113
114rust_test {
115    name: "minimal-lexical_test_tests_parse_tests",
116    defaults: ["minimal-lexical_test_defaults"],
117    host_supported: true,
118    srcs: ["tests/parse_tests.rs"],
119    test_options: {
120        unit_test: true,
121    },
122}
123
124rust_test {
125    name: "minimal-lexical_test_tests_rounding_tests",
126    defaults: ["minimal-lexical_test_defaults"],
127    host_supported: true,
128    srcs: ["tests/rounding_tests.rs"],
129    test_options: {
130        unit_test: true,
131    },
132}
133
134rust_test {
135    name: "minimal-lexical_test_tests_slow_tests",
136    defaults: ["minimal-lexical_test_defaults"],
137    host_supported: true,
138    srcs: ["tests/slow_tests.rs"],
139    test_options: {
140        unit_test: true,
141    },
142}
143
144rust_test {
145    name: "minimal-lexical_test_tests_vec_tests",
146    defaults: ["minimal-lexical_test_defaults"],
147    host_supported: true,
148    srcs: ["tests/vec_tests.rs"],
149    test_options: {
150        unit_test: true,
151    },
152}
153