1// This file is generated by cargo2android.py --run --device --dependencies --tests. 2// Do not modify this file as changes will be overridden on upgrade. 3 4package { 5 default_applicable_licenses: ["external_rust_crates_serde_cbor_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_serde_cbor_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 40rust_library { 41 name: "libserde_cbor", 42 host_supported: true, 43 crate_name: "serde_cbor", 44 srcs: ["src/lib.rs"], 45 edition: "2018", 46 features: [ 47 "default", 48 "std", 49 ], 50 rustlibs: [ 51 "libhalf", 52 "libserde", 53 ], 54} 55 56rust_defaults { 57 name: "serde_cbor_defaults", 58 crate_name: "serde_cbor", 59 srcs: ["src/lib.rs"], 60 test_suites: ["general-tests"], 61 auto_gen_config: true, 62 edition: "2018", 63 features: [ 64 "default", 65 "std", 66 ], 67 rustlibs: [ 68 "libhalf", 69 "libserde", 70 ], 71 proc_macros: ["libserde_derive"], 72} 73 74rust_test_host { 75 name: "serde_cbor_host_test_src_lib", 76 defaults: ["serde_cbor_defaults"], 77 test_options: { 78 unit_test: true, 79 }, 80} 81 82rust_test { 83 name: "serde_cbor_device_test_src_lib", 84 defaults: ["serde_cbor_defaults"], 85} 86 87rust_defaults { 88 name: "serde_cbor_defaults_serde_cbor", 89 crate_name: "serde_cbor", 90 test_suites: ["general-tests"], 91 auto_gen_config: true, 92 edition: "2018", 93 features: [ 94 "default", 95 "std", 96 ], 97 rustlibs: [ 98 "libhalf", 99 "libserde", 100 "libserde_cbor", 101 ], 102 proc_macros: ["libserde_derive"], 103} 104 105rust_test_host { 106 name: "serde_cbor_host_test_tests_bennofs", 107 defaults: ["serde_cbor_defaults_serde_cbor"], 108 srcs: ["tests/bennofs.rs"], 109 test_options: { 110 unit_test: true, 111 }, 112} 113 114rust_test { 115 name: "serde_cbor_device_test_tests_bennofs", 116 defaults: ["serde_cbor_defaults_serde_cbor"], 117 srcs: ["tests/bennofs.rs"], 118} 119 120rust_test_host { 121 name: "serde_cbor_host_test_tests_canonical", 122 defaults: ["serde_cbor_defaults_serde_cbor"], 123 srcs: ["tests/canonical.rs"], 124 test_options: { 125 unit_test: true, 126 }, 127} 128 129rust_test { 130 name: "serde_cbor_device_test_tests_canonical", 131 defaults: ["serde_cbor_defaults_serde_cbor"], 132 srcs: ["tests/canonical.rs"], 133} 134 135rust_test_host { 136 name: "serde_cbor_host_test_tests_de", 137 defaults: ["serde_cbor_defaults_serde_cbor"], 138 srcs: ["tests/de.rs"], 139 test_options: { 140 unit_test: true, 141 }, 142} 143 144rust_test { 145 name: "serde_cbor_device_test_tests_de", 146 defaults: ["serde_cbor_defaults_serde_cbor"], 147 srcs: ["tests/de.rs"], 148} 149 150rust_test_host { 151 name: "serde_cbor_host_test_tests_enum", 152 defaults: ["serde_cbor_defaults_serde_cbor"], 153 srcs: ["tests/enum.rs"], 154 test_options: { 155 unit_test: true, 156 }, 157} 158 159rust_test { 160 name: "serde_cbor_device_test_tests_enum", 161 defaults: ["serde_cbor_defaults_serde_cbor"], 162 srcs: ["tests/enum.rs"], 163} 164 165rust_test_host { 166 name: "serde_cbor_host_test_tests_ser", 167 defaults: ["serde_cbor_defaults_serde_cbor"], 168 srcs: ["tests/ser.rs"], 169 test_options: { 170 unit_test: true, 171 }, 172} 173 174rust_test { 175 name: "serde_cbor_device_test_tests_ser", 176 defaults: ["serde_cbor_defaults_serde_cbor"], 177 srcs: ["tests/ser.rs"], 178} 179 180rust_test_host { 181 name: "serde_cbor_host_test_tests_std_types", 182 defaults: ["serde_cbor_defaults_serde_cbor"], 183 srcs: ["tests/std_types.rs"], 184 test_options: { 185 unit_test: true, 186 }, 187} 188 189rust_test { 190 name: "serde_cbor_device_test_tests_std_types", 191 defaults: ["serde_cbor_defaults_serde_cbor"], 192 srcs: ["tests/std_types.rs"], 193} 194 195rust_test_host { 196 name: "serde_cbor_host_test_tests_tags", 197 defaults: ["serde_cbor_defaults_serde_cbor"], 198 srcs: ["tests/tags.rs"], 199 test_options: { 200 unit_test: true, 201 }, 202} 203 204rust_test { 205 name: "serde_cbor_device_test_tests_tags", 206 defaults: ["serde_cbor_defaults_serde_cbor"], 207 srcs: ["tests/tags.rs"], 208} 209 210rust_test_host { 211 name: "serde_cbor_host_test_tests_value", 212 defaults: ["serde_cbor_defaults_serde_cbor"], 213 srcs: ["tests/value.rs"], 214 test_options: { 215 unit_test: true, 216 }, 217} 218 219rust_test { 220 name: "serde_cbor_device_test_tests_value", 221 defaults: ["serde_cbor_defaults_serde_cbor"], 222 srcs: ["tests/value.rs"], 223} 224 225// dependent_library ["feature_list"] 226// half-1.7.1 227// proc-macro2-1.0.24 "default,proc-macro" 228// quote-1.0.9 "default,proc-macro" 229// serde-1.0.123 "std" 230// serde_derive-1.0.123 231// syn-1.0.61 "clone-impls,default,derive,parsing,printing,proc-macro,quote" 232// unicode-xid-0.2.1 "default" 233