1// This file is generated by cargo_embargo. 2// Do not modify this file after the first "rust_*" or "genrule" module 3// because the changes will be overridden on upgrade. 4// Content before the first "rust_*" or "genrule" module is preserved. 5 6package { 7 default_applicable_licenses: ["external_rust_crates_ryu_license"], 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_ryu_license", 31 visibility: [":__subpackages__"], 32 license_kinds: [ 33 "SPDX-license-identifier-Apache-2.0", 34 "SPDX-license-identifier-BSL-1.0", 35 "SPDX-license-identifier-MIT", 36 ], 37 license_text: [ 38 "LICENSE", 39 "LICENSE-APACHE", 40 "LICENSE-BOOST", 41 ], 42} 43 44rust_library { 45 name: "libryu", 46 host_supported: true, 47 crate_name: "ryu", 48 cargo_env_compat: true, 49 cargo_pkg_version: "1.0.16", 50 crate_root: "src/lib.rs", 51 edition: "2018", 52 apex_available: [ 53 "//apex_available:platform", 54 "com.android.virt", 55 ], 56 product_available: true, 57 vendor_available: true, 58} 59 60rust_test { 61 name: "ryu_test_tests_common_test", 62 host_supported: true, 63 crate_name: "common_test", 64 cargo_env_compat: true, 65 cargo_pkg_version: "1.0.16", 66 crate_root: "tests/common_test.rs", 67 test_suites: ["general-tests"], 68 auto_gen_config: true, 69 test_options: { 70 unit_test: true, 71 }, 72 edition: "2018", 73 rustlibs: [ 74 "libnum_cpus", 75 "librand", 76 "librand_xorshift", 77 "libryu", 78 ], 79} 80 81rust_test { 82 name: "ryu_test_tests_d2s_intrinsics_test", 83 host_supported: true, 84 crate_name: "d2s_intrinsics_test", 85 cargo_env_compat: true, 86 cargo_pkg_version: "1.0.16", 87 crate_root: "tests/d2s_intrinsics_test.rs", 88 test_suites: ["general-tests"], 89 auto_gen_config: true, 90 test_options: { 91 unit_test: true, 92 }, 93 edition: "2018", 94 rustlibs: [ 95 "libnum_cpus", 96 "librand", 97 "librand_xorshift", 98 "libryu", 99 ], 100} 101 102rust_test { 103 name: "ryu_test_tests_d2s_table_test", 104 host_supported: true, 105 crate_name: "d2s_table_test", 106 cargo_env_compat: true, 107 cargo_pkg_version: "1.0.16", 108 crate_root: "tests/d2s_table_test.rs", 109 test_suites: ["general-tests"], 110 auto_gen_config: true, 111 test_options: { 112 unit_test: true, 113 }, 114 edition: "2018", 115 rustlibs: [ 116 "libnum_cpus", 117 "librand", 118 "librand_xorshift", 119 "libryu", 120 ], 121} 122 123rust_test { 124 name: "ryu_test_tests_d2s_test", 125 host_supported: true, 126 crate_name: "d2s_test", 127 cargo_env_compat: true, 128 cargo_pkg_version: "1.0.16", 129 crate_root: "tests/d2s_test.rs", 130 test_suites: ["general-tests"], 131 auto_gen_config: true, 132 test_options: { 133 unit_test: true, 134 }, 135 edition: "2018", 136 rustlibs: [ 137 "libnum_cpus", 138 "librand", 139 "librand_xorshift", 140 "libryu", 141 ], 142} 143 144rust_test { 145 name: "ryu_test_tests_f2s_test", 146 host_supported: true, 147 crate_name: "f2s_test", 148 cargo_env_compat: true, 149 cargo_pkg_version: "1.0.16", 150 crate_root: "tests/f2s_test.rs", 151 test_suites: ["general-tests"], 152 auto_gen_config: true, 153 test_options: { 154 unit_test: true, 155 }, 156 edition: "2018", 157 rustlibs: [ 158 "libnum_cpus", 159 "librand", 160 "librand_xorshift", 161 "libryu", 162 ], 163} 164 165rust_test { 166 name: "ryu_test_tests_s2d_test", 167 host_supported: true, 168 crate_name: "s2d_test", 169 cargo_env_compat: true, 170 cargo_pkg_version: "1.0.16", 171 crate_root: "tests/s2d_test.rs", 172 test_suites: ["general-tests"], 173 auto_gen_config: true, 174 test_options: { 175 unit_test: true, 176 }, 177 edition: "2018", 178 rustlibs: [ 179 "libnum_cpus", 180 "librand", 181 "librand_xorshift", 182 "libryu", 183 ], 184} 185 186rust_test { 187 name: "ryu_test_tests_s2f_test", 188 host_supported: true, 189 crate_name: "s2f_test", 190 cargo_env_compat: true, 191 cargo_pkg_version: "1.0.16", 192 crate_root: "tests/s2f_test.rs", 193 test_suites: ["general-tests"], 194 auto_gen_config: true, 195 test_options: { 196 unit_test: true, 197 }, 198 edition: "2018", 199 rustlibs: [ 200 "libnum_cpus", 201 "librand", 202 "librand_xorshift", 203 "libryu", 204 ], 205} 206