blob: 851668cd2622a05ca68360355e888c1e71164e84 [file] [log] [blame]
Joel Galenson9e820482021-04-28 08:40:08 -07001// This file is generated by cargo2android.py --config cargo2android.json.
2// Do not modify this file as changes will be overridden on upgrade.
Yi Kongce81bb62020-08-31 01:21:33 +08003
Bob Badour6e84f872021-02-12 14:40:22 -08004package {
5 default_applicable_licenses: ["external_rust_crates_ryu_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_ryu_license",
29 visibility: [":__subpackages__"],
30 license_kinds: [
31 "SPDX-license-identifier-Apache-2.0",
32 "SPDX-license-identifier-BSL-1.0",
33 "SPDX-license-identifier-MIT",
34 ],
35 license_text: [
36 "LICENSE",
37 "LICENSE-APACHE",
38 "LICENSE-BOOST",
39 ],
40}
41
Yi Kongce81bb62020-08-31 01:21:33 +080042rust_library {
43 name: "libryu",
44 host_supported: true,
45 crate_name: "ryu",
Jeff Vander Stoep042b8e12021-10-19 13:55:52 +020046 cargo_env_compat: true,
David LeGare7461d202022-03-02 16:21:20 +000047 cargo_pkg_version: "1.0.9",
Yi Kongce81bb62020-08-31 01:21:33 +080048 srcs: ["src/lib.rs"],
49 edition: "2018",
Jiyong Park02dce942021-02-16 13:28:04 +090050 apex_available: [
51 "//apex_available:platform",
52 "com.android.virt",
53 ],
Yi Kongce81bb62020-08-31 01:21:33 +080054}
Jeff Vander Stoep042b8e12021-10-19 13:55:52 +020055
56rust_defaults {
57 name: "ryu_test_defaults",
58 crate_name: "ryu",
59 cargo_env_compat: true,
David LeGare7461d202022-03-02 16:21:20 +000060 cargo_pkg_version: "1.0.9",
Jeff Vander Stoep042b8e12021-10-19 13:55:52 +020061 test_suites: ["general-tests"],
62 auto_gen_config: true,
63 edition: "2018",
Jeff Vander Stoep042b8e12021-10-19 13:55:52 +020064 rustlibs: [
65 "libnum_cpus",
66 "librand",
67 "librand_xorshift",
68 "libryu",
69 ],
70}
71
Joel Galensonc5101592021-11-29 14:05:14 -080072rust_test {
73 name: "ryu_test_tests_common_test",
Jeff Vander Stoep042b8e12021-10-19 13:55:52 +020074 defaults: ["ryu_test_defaults"],
Joel Galensonc5101592021-11-29 14:05:14 -080075 host_supported: true,
Jeff Vander Stoep042b8e12021-10-19 13:55:52 +020076 srcs: ["tests/common_test.rs"],
77 test_options: {
78 unit_test: true,
79 },
80}
81
82rust_test {
Joel Galensonc5101592021-11-29 14:05:14 -080083 name: "ryu_test_tests_d2s_table_test",
Jeff Vander Stoep042b8e12021-10-19 13:55:52 +020084 defaults: ["ryu_test_defaults"],
Joel Galensonc5101592021-11-29 14:05:14 -080085 host_supported: true,
Jeff Vander Stoep042b8e12021-10-19 13:55:52 +020086 srcs: ["tests/d2s_table_test.rs"],
87 test_options: {
88 unit_test: true,
89 },
90}
91
92rust_test {
Joel Galensonc5101592021-11-29 14:05:14 -080093 name: "ryu_test_tests_d2s_test",
Jeff Vander Stoep042b8e12021-10-19 13:55:52 +020094 defaults: ["ryu_test_defaults"],
Joel Galensonc5101592021-11-29 14:05:14 -080095 host_supported: true,
Jeff Vander Stoep042b8e12021-10-19 13:55:52 +020096 srcs: ["tests/d2s_test.rs"],
97 test_options: {
98 unit_test: true,
99 },
100}
101
102rust_test {
Joel Galensonc5101592021-11-29 14:05:14 -0800103 name: "ryu_test_tests_f2s_test",
Jeff Vander Stoep042b8e12021-10-19 13:55:52 +0200104 defaults: ["ryu_test_defaults"],
Joel Galensonc5101592021-11-29 14:05:14 -0800105 host_supported: true,
Jeff Vander Stoep042b8e12021-10-19 13:55:52 +0200106 srcs: ["tests/f2s_test.rs"],
107 test_options: {
108 unit_test: true,
109 },
110}
111
112rust_test {
Joel Galensonc5101592021-11-29 14:05:14 -0800113 name: "ryu_test_tests_s2d_test",
Jeff Vander Stoep042b8e12021-10-19 13:55:52 +0200114 defaults: ["ryu_test_defaults"],
Joel Galensonc5101592021-11-29 14:05:14 -0800115 host_supported: true,
Jeff Vander Stoep042b8e12021-10-19 13:55:52 +0200116 srcs: ["tests/s2d_test.rs"],
117 test_options: {
118 unit_test: true,
119 },
120}
121
122rust_test {
Joel Galensonc5101592021-11-29 14:05:14 -0800123 name: "ryu_test_tests_s2f_test",
Jeff Vander Stoep042b8e12021-10-19 13:55:52 +0200124 defaults: ["ryu_test_defaults"],
Joel Galensonc5101592021-11-29 14:05:14 -0800125 host_supported: true,
Jeff Vander Stoep042b8e12021-10-19 13:55:52 +0200126 srcs: ["tests/s2f_test.rs"],
127 test_options: {
128 unit_test: true,
129 },
130}