Joel Galenson | 9e82048 | 2021-04-28 08:40:08 -0700 | [diff] [blame] | 1 | // This file is generated by cargo2android.py --config cargo2android.json. |
| 2 | // Do not modify this file as changes will be overridden on upgrade. |
Yi Kong | ce81bb6 | 2020-08-31 01:21:33 +0800 | [diff] [blame] | 3 | |
Bob Badour | 6e84f87 | 2021-02-12 14:40:22 -0800 | [diff] [blame] | 4 | package { |
| 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 |
| 27 | license { |
| 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 Kong | ce81bb6 | 2020-08-31 01:21:33 +0800 | [diff] [blame] | 42 | rust_library { |
| 43 | name: "libryu", |
| 44 | host_supported: true, |
| 45 | crate_name: "ryu", |
Jeff Vander Stoep | 042b8e1 | 2021-10-19 13:55:52 +0200 | [diff] [blame] | 46 | cargo_env_compat: true, |
David LeGare | 7461d20 | 2022-03-02 16:21:20 +0000 | [diff] [blame] | 47 | cargo_pkg_version: "1.0.9", |
Yi Kong | ce81bb6 | 2020-08-31 01:21:33 +0800 | [diff] [blame] | 48 | srcs: ["src/lib.rs"], |
| 49 | edition: "2018", |
Jiyong Park | 02dce94 | 2021-02-16 13:28:04 +0900 | [diff] [blame] | 50 | apex_available: [ |
| 51 | "//apex_available:platform", |
| 52 | "com.android.virt", |
| 53 | ], |
Yi Kong | ce81bb6 | 2020-08-31 01:21:33 +0800 | [diff] [blame] | 54 | } |
Jeff Vander Stoep | 042b8e1 | 2021-10-19 13:55:52 +0200 | [diff] [blame] | 55 | |
| 56 | rust_defaults { |
| 57 | name: "ryu_test_defaults", |
| 58 | crate_name: "ryu", |
| 59 | cargo_env_compat: true, |
David LeGare | 7461d20 | 2022-03-02 16:21:20 +0000 | [diff] [blame] | 60 | cargo_pkg_version: "1.0.9", |
Jeff Vander Stoep | 042b8e1 | 2021-10-19 13:55:52 +0200 | [diff] [blame] | 61 | test_suites: ["general-tests"], |
| 62 | auto_gen_config: true, |
| 63 | edition: "2018", |
Jeff Vander Stoep | 042b8e1 | 2021-10-19 13:55:52 +0200 | [diff] [blame] | 64 | rustlibs: [ |
| 65 | "libnum_cpus", |
| 66 | "librand", |
| 67 | "librand_xorshift", |
| 68 | "libryu", |
| 69 | ], |
| 70 | } |
| 71 | |
Joel Galenson | c510159 | 2021-11-29 14:05:14 -0800 | [diff] [blame] | 72 | rust_test { |
| 73 | name: "ryu_test_tests_common_test", |
Jeff Vander Stoep | 042b8e1 | 2021-10-19 13:55:52 +0200 | [diff] [blame] | 74 | defaults: ["ryu_test_defaults"], |
Joel Galenson | c510159 | 2021-11-29 14:05:14 -0800 | [diff] [blame] | 75 | host_supported: true, |
Jeff Vander Stoep | 042b8e1 | 2021-10-19 13:55:52 +0200 | [diff] [blame] | 76 | srcs: ["tests/common_test.rs"], |
| 77 | test_options: { |
| 78 | unit_test: true, |
| 79 | }, |
| 80 | } |
| 81 | |
| 82 | rust_test { |
Joel Galenson | c510159 | 2021-11-29 14:05:14 -0800 | [diff] [blame] | 83 | name: "ryu_test_tests_d2s_table_test", |
Jeff Vander Stoep | 042b8e1 | 2021-10-19 13:55:52 +0200 | [diff] [blame] | 84 | defaults: ["ryu_test_defaults"], |
Joel Galenson | c510159 | 2021-11-29 14:05:14 -0800 | [diff] [blame] | 85 | host_supported: true, |
Jeff Vander Stoep | 042b8e1 | 2021-10-19 13:55:52 +0200 | [diff] [blame] | 86 | srcs: ["tests/d2s_table_test.rs"], |
| 87 | test_options: { |
| 88 | unit_test: true, |
| 89 | }, |
| 90 | } |
| 91 | |
| 92 | rust_test { |
Joel Galenson | c510159 | 2021-11-29 14:05:14 -0800 | [diff] [blame] | 93 | name: "ryu_test_tests_d2s_test", |
Jeff Vander Stoep | 042b8e1 | 2021-10-19 13:55:52 +0200 | [diff] [blame] | 94 | defaults: ["ryu_test_defaults"], |
Joel Galenson | c510159 | 2021-11-29 14:05:14 -0800 | [diff] [blame] | 95 | host_supported: true, |
Jeff Vander Stoep | 042b8e1 | 2021-10-19 13:55:52 +0200 | [diff] [blame] | 96 | srcs: ["tests/d2s_test.rs"], |
| 97 | test_options: { |
| 98 | unit_test: true, |
| 99 | }, |
| 100 | } |
| 101 | |
| 102 | rust_test { |
Joel Galenson | c510159 | 2021-11-29 14:05:14 -0800 | [diff] [blame] | 103 | name: "ryu_test_tests_f2s_test", |
Jeff Vander Stoep | 042b8e1 | 2021-10-19 13:55:52 +0200 | [diff] [blame] | 104 | defaults: ["ryu_test_defaults"], |
Joel Galenson | c510159 | 2021-11-29 14:05:14 -0800 | [diff] [blame] | 105 | host_supported: true, |
Jeff Vander Stoep | 042b8e1 | 2021-10-19 13:55:52 +0200 | [diff] [blame] | 106 | srcs: ["tests/f2s_test.rs"], |
| 107 | test_options: { |
| 108 | unit_test: true, |
| 109 | }, |
| 110 | } |
| 111 | |
| 112 | rust_test { |
Joel Galenson | c510159 | 2021-11-29 14:05:14 -0800 | [diff] [blame] | 113 | name: "ryu_test_tests_s2d_test", |
Jeff Vander Stoep | 042b8e1 | 2021-10-19 13:55:52 +0200 | [diff] [blame] | 114 | defaults: ["ryu_test_defaults"], |
Joel Galenson | c510159 | 2021-11-29 14:05:14 -0800 | [diff] [blame] | 115 | host_supported: true, |
Jeff Vander Stoep | 042b8e1 | 2021-10-19 13:55:52 +0200 | [diff] [blame] | 116 | srcs: ["tests/s2d_test.rs"], |
| 117 | test_options: { |
| 118 | unit_test: true, |
| 119 | }, |
| 120 | } |
| 121 | |
| 122 | rust_test { |
Joel Galenson | c510159 | 2021-11-29 14:05:14 -0800 | [diff] [blame] | 123 | name: "ryu_test_tests_s2f_test", |
Jeff Vander Stoep | 042b8e1 | 2021-10-19 13:55:52 +0200 | [diff] [blame] | 124 | defaults: ["ryu_test_defaults"], |
Joel Galenson | c510159 | 2021-11-29 14:05:14 -0800 | [diff] [blame] | 125 | host_supported: true, |
Jeff Vander Stoep | 042b8e1 | 2021-10-19 13:55:52 +0200 | [diff] [blame] | 126 | srcs: ["tests/s2f_test.rs"], |
| 127 | test_options: { |
| 128 | unit_test: true, |
| 129 | }, |
| 130 | } |