1// This file is generated by cargo2android.py --config cargo2android.json. 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 cargo_env_compat: true, 45 cargo_pkg_version: "0.11.2", 46 srcs: ["src/lib.rs"], 47 edition: "2018", 48 features: [ 49 "default", 50 "std", 51 "tags", 52 ], 53 rustlibs: [ 54 "libhalf", 55 "libserde", 56 ], 57 vendor_available: true, 58} 59 60rust_defaults { 61 name: "serde_cbor_test_defaults", 62 crate_name: "serde_cbor", 63 cargo_env_compat: true, 64 cargo_pkg_version: "0.11.2", 65 test_suites: ["general-tests"], 66 auto_gen_config: true, 67 edition: "2018", 68 features: [ 69 "default", 70 "std", 71 "tags", 72 ], 73 rustlibs: [ 74 "libhalf", 75 "libserde", 76 "libserde_cbor", 77 ], 78 proc_macros: ["libserde_derive"], 79} 80 81rust_test { 82 name: "serde_cbor_test_tests_bennofs", 83 defaults: ["serde_cbor_test_defaults"], 84 host_supported: true, 85 srcs: ["tests/bennofs.rs"], 86 test_options: { 87 unit_test: true, 88 }, 89} 90 91rust_test { 92 name: "serde_cbor_test_tests_canonical", 93 defaults: ["serde_cbor_test_defaults"], 94 host_supported: true, 95 srcs: ["tests/canonical.rs"], 96 test_options: { 97 unit_test: true, 98 }, 99} 100 101rust_test { 102 name: "serde_cbor_test_tests_de", 103 defaults: ["serde_cbor_test_defaults"], 104 host_supported: true, 105 srcs: ["tests/de.rs"], 106 test_options: { 107 unit_test: true, 108 }, 109} 110 111rust_test { 112 name: "serde_cbor_test_tests_enum", 113 defaults: ["serde_cbor_test_defaults"], 114 host_supported: true, 115 srcs: ["tests/enum.rs"], 116 test_options: { 117 unit_test: true, 118 }, 119} 120 121rust_test { 122 name: "serde_cbor_test_tests_ser", 123 defaults: ["serde_cbor_test_defaults"], 124 host_supported: true, 125 srcs: ["tests/ser.rs"], 126 test_options: { 127 unit_test: true, 128 }, 129} 130 131rust_test { 132 name: "serde_cbor_test_tests_std_types", 133 defaults: ["serde_cbor_test_defaults"], 134 host_supported: true, 135 srcs: ["tests/std_types.rs"], 136 test_options: { 137 unit_test: true, 138 }, 139} 140 141rust_test { 142 name: "serde_cbor_test_tests_tags", 143 defaults: ["serde_cbor_test_defaults"], 144 host_supported: true, 145 srcs: ["tests/tags.rs"], 146 test_options: { 147 unit_test: true, 148 }, 149} 150 151rust_test { 152 name: "serde_cbor_test_tests_value", 153 defaults: ["serde_cbor_test_defaults"], 154 host_supported: true, 155 srcs: ["tests/value.rs"], 156 test_options: { 157 unit_test: true, 158 }, 159} 160