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_chrono_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// See: http://go/android-license-faq 24license { 25 name: "external_rust_crates_chrono_license", 26 visibility: [":__subpackages__"], 27 license_kinds: [ 28 "SPDX-license-identifier-Apache-2.0", 29 "SPDX-license-identifier-MIT", 30 ], 31 license_text: [ 32 "LICENSE.txt", 33 ], 34} 35 36rust_test { 37 name: "chrono_test_src_lib", 38 host_supported: true, 39 crate_name: "chrono", 40 cargo_env_compat: true, 41 cargo_pkg_version: "0.4.34", 42 crate_root: "src/lib.rs", 43 test_suites: ["general-tests"], 44 auto_gen_config: true, 45 test_options: { 46 unit_test: true, 47 }, 48 edition: "2021", 49 features: [ 50 "alloc", 51 "now", 52 "serde", 53 "std", 54 ], 55 rustlibs: [ 56 "libbincode", 57 "libnum_traits", 58 "libserde", 59 "libserde_json", 60 ], 61 proc_macros: ["libserde_derive"], 62} 63 64rust_test { 65 name: "chrono_test_tests_dateutils", 66 host_supported: true, 67 crate_name: "dateutils", 68 cargo_env_compat: true, 69 cargo_pkg_version: "0.4.34", 70 crate_root: "tests/dateutils.rs", 71 test_suites: ["general-tests"], 72 auto_gen_config: true, 73 test_options: { 74 unit_test: true, 75 }, 76 edition: "2021", 77 features: [ 78 "alloc", 79 "now", 80 "serde", 81 "std", 82 ], 83 rustlibs: [ 84 "libbincode", 85 "libchrono", 86 "libnum_traits", 87 "libserde", 88 "libserde_json", 89 ], 90 proc_macros: ["libserde_derive"], 91} 92 93rust_test { 94 name: "chrono_test_tests_wasm", 95 host_supported: true, 96 crate_name: "wasm", 97 cargo_env_compat: true, 98 cargo_pkg_version: "0.4.34", 99 crate_root: "tests/wasm.rs", 100 test_suites: ["general-tests"], 101 auto_gen_config: true, 102 test_options: { 103 unit_test: true, 104 }, 105 edition: "2021", 106 features: [ 107 "alloc", 108 "now", 109 "serde", 110 "std", 111 ], 112 rustlibs: [ 113 "libbincode", 114 "libchrono", 115 "libnum_traits", 116 "libserde", 117 "libserde_json", 118 ], 119 proc_macros: ["libserde_derive"], 120} 121 122rust_test { 123 name: "chrono_test_tests_win_bindings", 124 host_supported: true, 125 crate_name: "win_bindings", 126 cargo_env_compat: true, 127 cargo_pkg_version: "0.4.34", 128 crate_root: "tests/win_bindings.rs", 129 test_suites: ["general-tests"], 130 auto_gen_config: true, 131 test_options: { 132 unit_test: true, 133 }, 134 edition: "2021", 135 features: [ 136 "alloc", 137 "now", 138 "serde", 139 "std", 140 ], 141 rustlibs: [ 142 "libbincode", 143 "libchrono", 144 "libnum_traits", 145 "libserde", 146 "libserde_json", 147 ], 148 proc_macros: ["libserde_derive"], 149} 150 151rust_library { 152 name: "libchrono", 153 host_supported: true, 154 crate_name: "chrono", 155 cargo_env_compat: true, 156 cargo_pkg_version: "0.4.34", 157 crate_root: "src/lib.rs", 158 edition: "2021", 159 features: [ 160 "alloc", 161 "now", 162 "serde", 163 "std", 164 ], 165 rustlibs: [ 166 "libnum_traits", 167 "libserde", 168 ], 169 apex_available: [ 170 "//apex_available:platform", 171 "com.android.virt", 172 ], 173 product_available: true, 174 vendor_available: true, 175} 176