blob: 826dcf6abd0236e7a979638ff540700abe90b321 [file] [log] [blame]
Joel Galenson1a12ef62021-11-29 14:04:30 -08001// This file is generated by cargo2android.py --config cargo2android.json.
Jeff Vander Stoep0fa9d862021-10-19 12:15:08 +02002// Do not modify this file as changes will be overridden on upgrade.
Yi Kong9b57dcb2021-02-03 15:08:21 +08003
Bob Badourd1892622021-02-12 21:32:49 -08004package {
5 default_applicable_licenses: ["external_rust_crates_num-integer_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
27license {
28 name: "external_rust_crates_num-integer_license",
29 visibility: [":__subpackages__"],
30 license_kinds: [
31 "SPDX-license-identifier-Apache-2.0",
32 "SPDX-license-identifier-MIT",
33 ],
34 license_text: [
35 "LICENSE-APACHE",
36 "LICENSE-MIT",
37 ],
38}
39
Yi Kong9b57dcb2021-02-03 15:08:21 +080040rust_library {
41 name: "libnum_integer",
42 host_supported: true,
43 crate_name: "num_integer",
Jeff Vander Stoep0fa9d862021-10-19 12:15:08 +020044 cargo_env_compat: true,
45 cargo_pkg_version: "0.1.44",
Yi Kong9b57dcb2021-02-03 15:08:21 +080046 srcs: ["src/lib.rs"],
47 edition: "2015",
48 features: [
49 "default",
50 "std",
51 ],
Jeff Vander Stoep0fa9d862021-10-19 12:15:08 +020052 cfgs: ["has_i128"],
Yi Kong9b57dcb2021-02-03 15:08:21 +080053 rustlibs: [
54 "libnum_traits",
55 ],
56}
57
Joel Galenson1a12ef62021-11-29 14:04:30 -080058rust_test {
59 name: "num-integer_test_src_lib",
60 host_supported: true,
Jeff Vander Stoep0fa9d862021-10-19 12:15:08 +020061 crate_name: "num_integer",
Jeff Vander Stoep0fa9d862021-10-19 12:15:08 +020062 cargo_env_compat: true,
63 cargo_pkg_version: "0.1.44",
Joel Galenson1a12ef62021-11-29 14:04:30 -080064 srcs: ["src/lib.rs"],
Jeff Vander Stoep0fa9d862021-10-19 12:15:08 +020065 test_suites: ["general-tests"],
66 auto_gen_config: true,
Joel Galenson1a12ef62021-11-29 14:04:30 -080067 test_options: {
68 unit_test: true,
69 },
Jeff Vander Stoep0fa9d862021-10-19 12:15:08 +020070 edition: "2015",
71 features: [
72 "default",
73 "std",
74 ],
75 cfgs: ["has_i128"],
76 rustlibs: [
77 "libnum_traits",
78 ],
79}
80
Jeff Vander Stoep0fa9d862021-10-19 12:15:08 +020081rust_defaults {
Joel Galenson1a12ef62021-11-29 14:04:30 -080082 name: "num-integer_test_defaults",
Jeff Vander Stoep0fa9d862021-10-19 12:15:08 +020083 crate_name: "num_integer",
84 cargo_env_compat: true,
85 cargo_pkg_version: "0.1.44",
86 test_suites: ["general-tests"],
87 auto_gen_config: true,
88 edition: "2015",
89 features: [
90 "default",
91 "std",
92 ],
93 cfgs: ["has_i128"],
94 rustlibs: [
95 "libnum_integer",
96 "libnum_traits",
97 ],
98}
99
Joel Galenson1a12ef62021-11-29 14:04:30 -0800100rust_test {
101 name: "num-integer_test_tests_average",
102 defaults: ["num-integer_test_defaults"],
103 host_supported: true,
Jeff Vander Stoep0fa9d862021-10-19 12:15:08 +0200104 srcs: ["tests/average.rs"],
105 test_options: {
106 unit_test: true,
107 },
108}
109
110rust_test {
Joel Galenson1a12ef62021-11-29 14:04:30 -0800111 name: "num-integer_test_tests_roots",
112 defaults: ["num-integer_test_defaults"],
113 host_supported: true,
Jeff Vander Stoep0fa9d862021-10-19 12:15:08 +0200114 srcs: ["tests/roots.rs"],
115 test_options: {
116 unit_test: true,
117 },
118}