blob: 7f4ff70dc4e993bf03f5da568788d5454c127239 [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",
Steven Moreland2d2a78b2022-04-01 16:40:32 +000042 // has rustc warnings
Yi Kong9b57dcb2021-02-03 15:08:21 +080043 host_supported: true,
44 crate_name: "num_integer",
Jeff Vander Stoep0fa9d862021-10-19 12:15:08 +020045 cargo_env_compat: true,
46 cargo_pkg_version: "0.1.44",
Yi Kong9b57dcb2021-02-03 15:08:21 +080047 srcs: ["src/lib.rs"],
48 edition: "2015",
49 features: [
50 "default",
51 "std",
52 ],
Jeff Vander Stoep0fa9d862021-10-19 12:15:08 +020053 cfgs: ["has_i128"],
Yi Kong9b57dcb2021-02-03 15:08:21 +080054 rustlibs: [
55 "libnum_traits",
56 ],
Steven Moreland2d2a78b2022-04-01 16:40:32 +000057 apex_available: [
58 "//apex_available:platform",
59 "com.android.virt",
60 ],
Yi Kong9b57dcb2021-02-03 15:08:21 +080061}
62
Joel Galenson1a12ef62021-11-29 14:04:30 -080063rust_test {
64 name: "num-integer_test_src_lib",
Steven Moreland2d2a78b2022-04-01 16:40:32 +000065 // has rustc warnings
Joel Galenson1a12ef62021-11-29 14:04:30 -080066 host_supported: true,
Jeff Vander Stoep0fa9d862021-10-19 12:15:08 +020067 crate_name: "num_integer",
Jeff Vander Stoep0fa9d862021-10-19 12:15:08 +020068 cargo_env_compat: true,
69 cargo_pkg_version: "0.1.44",
Joel Galenson1a12ef62021-11-29 14:04:30 -080070 srcs: ["src/lib.rs"],
Jeff Vander Stoep0fa9d862021-10-19 12:15:08 +020071 test_suites: ["general-tests"],
72 auto_gen_config: true,
Joel Galenson1a12ef62021-11-29 14:04:30 -080073 test_options: {
74 unit_test: true,
75 },
Jeff Vander Stoep0fa9d862021-10-19 12:15:08 +020076 edition: "2015",
77 features: [
78 "default",
79 "std",
80 ],
81 cfgs: ["has_i128"],
82 rustlibs: [
83 "libnum_traits",
84 ],
85}
86
Jeff Vander Stoep0fa9d862021-10-19 12:15:08 +020087rust_defaults {
Joel Galenson1a12ef62021-11-29 14:04:30 -080088 name: "num-integer_test_defaults",
Jeff Vander Stoep0fa9d862021-10-19 12:15:08 +020089 crate_name: "num_integer",
90 cargo_env_compat: true,
91 cargo_pkg_version: "0.1.44",
92 test_suites: ["general-tests"],
93 auto_gen_config: true,
94 edition: "2015",
95 features: [
96 "default",
97 "std",
98 ],
99 cfgs: ["has_i128"],
100 rustlibs: [
101 "libnum_integer",
102 "libnum_traits",
103 ],
104}
105
Joel Galenson1a12ef62021-11-29 14:04:30 -0800106rust_test {
107 name: "num-integer_test_tests_average",
108 defaults: ["num-integer_test_defaults"],
Steven Moreland2d2a78b2022-04-01 16:40:32 +0000109 // has rustc warnings
Joel Galenson1a12ef62021-11-29 14:04:30 -0800110 host_supported: true,
Jeff Vander Stoep0fa9d862021-10-19 12:15:08 +0200111 srcs: ["tests/average.rs"],
112 test_options: {
113 unit_test: true,
114 },
115}
116
117rust_test {
Joel Galenson1a12ef62021-11-29 14:04:30 -0800118 name: "num-integer_test_tests_roots",
119 defaults: ["num-integer_test_defaults"],
Steven Moreland2d2a78b2022-04-01 16:40:32 +0000120 // has rustc warnings
Joel Galenson1a12ef62021-11-29 14:04:30 -0800121 host_supported: true,
Jeff Vander Stoep0fa9d862021-10-19 12:15:08 +0200122 srcs: ["tests/roots.rs"],
123 test_options: {
124 unit_test: true,
125 },
126}