Jason Macnak | 981e62f | 2021-10-08 12:12:49 -0700 | [diff] [blame] | 1 | // This file is generated by cargo2android.py --config cargo2android.json. |
Jakub Kotur | 00ae16c | 2020-12-22 09:58:47 +0100 | [diff] [blame] | 2 | // Do not modify this file as changes will be overridden on upgrade. |
| 3 | |
Bob Badour | 3122e0b | 2021-03-17 12:53:03 -0700 | [diff] [blame] | 4 | package { |
| 5 | default_applicable_licenses: [ |
| 6 | "external_rust_crates_crossbeam-utils_license", |
| 7 | ], |
| 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 |
| 29 | license { |
| 30 | name: "external_rust_crates_crossbeam-utils_license", |
| 31 | visibility: [":__subpackages__"], |
| 32 | license_kinds: [ |
| 33 | "SPDX-license-identifier-Apache-2.0", |
| 34 | "SPDX-license-identifier-MIT", |
| 35 | ], |
| 36 | license_text: [ |
| 37 | "LICENSE-APACHE", |
| 38 | "LICENSE-MIT", |
| 39 | ], |
| 40 | } |
| 41 | |
Joel Galenson | fa8002d | 2021-11-29 14:03:28 -0800 | [diff] [blame] | 42 | rust_test { |
| 43 | name: "crossbeam-utils_test_src_lib", |
| 44 | host_supported: true, |
Jakub Kotur | 3276f60 | 2021-03-18 15:00:41 +0100 | [diff] [blame] | 45 | crate_name: "crossbeam_utils", |
Jason Macnak | 981e62f | 2021-10-08 12:12:49 -0700 | [diff] [blame] | 46 | cargo_env_compat: true, |
David LeGare | 66bcc0c | 2022-03-01 19:05:04 +0000 | [diff] [blame] | 47 | cargo_pkg_version: "0.8.7", |
Joel Galenson | fa8002d | 2021-11-29 14:03:28 -0800 | [diff] [blame] | 48 | srcs: ["src/lib.rs"], |
Jakub Kotur | 3276f60 | 2021-03-18 15:00:41 +0100 | [diff] [blame] | 49 | test_suites: ["general-tests"], |
| 50 | auto_gen_config: true, |
Joel Galenson | fa8002d | 2021-11-29 14:03:28 -0800 | [diff] [blame] | 51 | test_options: { |
| 52 | unit_test: true, |
| 53 | }, |
Jakub Kotur | 3276f60 | 2021-03-18 15:00:41 +0100 | [diff] [blame] | 54 | edition: "2018", |
| 55 | features: [ |
| 56 | "default", |
| 57 | "lazy_static", |
| 58 | "std", |
| 59 | ], |
Jakub Kotur | 3276f60 | 2021-03-18 15:00:41 +0100 | [diff] [blame] | 60 | rustlibs: [ |
| 61 | "libcfg_if", |
| 62 | "liblazy_static", |
| 63 | "librand", |
| 64 | ], |
David LeGare | 66bcc0c | 2022-03-01 19:05:04 +0000 | [diff] [blame] | 65 | proc_macros: ["librustversion"], |
Jakub Kotur | 3276f60 | 2021-03-18 15:00:41 +0100 | [diff] [blame] | 66 | } |
| 67 | |
Jakub Kotur | 3276f60 | 2021-03-18 15:00:41 +0100 | [diff] [blame] | 68 | rust_defaults { |
Joel Galenson | fa8002d | 2021-11-29 14:03:28 -0800 | [diff] [blame] | 69 | name: "crossbeam-utils_test_defaults", |
Jakub Kotur | 3276f60 | 2021-03-18 15:00:41 +0100 | [diff] [blame] | 70 | crate_name: "crossbeam_utils", |
Jason Macnak | 981e62f | 2021-10-08 12:12:49 -0700 | [diff] [blame] | 71 | cargo_env_compat: true, |
David LeGare | 66bcc0c | 2022-03-01 19:05:04 +0000 | [diff] [blame] | 72 | cargo_pkg_version: "0.8.7", |
Jakub Kotur | 3276f60 | 2021-03-18 15:00:41 +0100 | [diff] [blame] | 73 | test_suites: ["general-tests"], |
| 74 | auto_gen_config: true, |
| 75 | edition: "2018", |
| 76 | features: [ |
| 77 | "default", |
| 78 | "lazy_static", |
| 79 | "std", |
| 80 | ], |
Jakub Kotur | 3276f60 | 2021-03-18 15:00:41 +0100 | [diff] [blame] | 81 | rustlibs: [ |
| 82 | "libcfg_if", |
| 83 | "libcrossbeam_utils", |
| 84 | "liblazy_static", |
| 85 | "librand", |
| 86 | ], |
David LeGare | 66bcc0c | 2022-03-01 19:05:04 +0000 | [diff] [blame] | 87 | proc_macros: ["librustversion"], |
Jakub Kotur | 3276f60 | 2021-03-18 15:00:41 +0100 | [diff] [blame] | 88 | } |
| 89 | |
Joel Galenson | fa8002d | 2021-11-29 14:03:28 -0800 | [diff] [blame] | 90 | rust_test { |
| 91 | name: "crossbeam-utils_test_tests_atomic_cell", |
| 92 | defaults: ["crossbeam-utils_test_defaults"], |
| 93 | host_supported: true, |
Jakub Kotur | 3276f60 | 2021-03-18 15:00:41 +0100 | [diff] [blame] | 94 | srcs: ["tests/atomic_cell.rs"], |
| 95 | test_options: { |
| 96 | unit_test: true, |
| 97 | }, |
| 98 | } |
| 99 | |
| 100 | rust_test { |
Joel Galenson | fa8002d | 2021-11-29 14:03:28 -0800 | [diff] [blame] | 101 | name: "crossbeam-utils_test_tests_cache_padded", |
| 102 | defaults: ["crossbeam-utils_test_defaults"], |
| 103 | host_supported: true, |
Jakub Kotur | 3276f60 | 2021-03-18 15:00:41 +0100 | [diff] [blame] | 104 | srcs: ["tests/cache_padded.rs"], |
| 105 | test_options: { |
| 106 | unit_test: true, |
| 107 | }, |
| 108 | } |
| 109 | |
| 110 | rust_test { |
Joel Galenson | fa8002d | 2021-11-29 14:03:28 -0800 | [diff] [blame] | 111 | name: "crossbeam-utils_test_tests_parker", |
| 112 | defaults: ["crossbeam-utils_test_defaults"], |
| 113 | host_supported: true, |
Jakub Kotur | 3276f60 | 2021-03-18 15:00:41 +0100 | [diff] [blame] | 114 | srcs: ["tests/parker.rs"], |
| 115 | test_options: { |
| 116 | unit_test: true, |
| 117 | }, |
| 118 | } |
| 119 | |
| 120 | rust_test { |
Joel Galenson | fa8002d | 2021-11-29 14:03:28 -0800 | [diff] [blame] | 121 | name: "crossbeam-utils_test_tests_sharded_lock", |
| 122 | defaults: ["crossbeam-utils_test_defaults"], |
| 123 | host_supported: true, |
Jakub Kotur | 3276f60 | 2021-03-18 15:00:41 +0100 | [diff] [blame] | 124 | srcs: ["tests/sharded_lock.rs"], |
| 125 | test_options: { |
| 126 | unit_test: true, |
| 127 | }, |
| 128 | } |
| 129 | |
| 130 | rust_test { |
Joel Galenson | fa8002d | 2021-11-29 14:03:28 -0800 | [diff] [blame] | 131 | name: "crossbeam-utils_test_tests_thread", |
| 132 | defaults: ["crossbeam-utils_test_defaults"], |
| 133 | host_supported: true, |
Jakub Kotur | 3276f60 | 2021-03-18 15:00:41 +0100 | [diff] [blame] | 134 | srcs: ["tests/thread.rs"], |
| 135 | test_options: { |
| 136 | unit_test: true, |
| 137 | }, |
| 138 | } |
| 139 | |
| 140 | rust_test { |
Joel Galenson | fa8002d | 2021-11-29 14:03:28 -0800 | [diff] [blame] | 141 | name: "crossbeam-utils_test_tests_wait_group", |
| 142 | defaults: ["crossbeam-utils_test_defaults"], |
| 143 | host_supported: true, |
Jakub Kotur | 3276f60 | 2021-03-18 15:00:41 +0100 | [diff] [blame] | 144 | srcs: ["tests/wait_group.rs"], |
| 145 | test_options: { |
| 146 | unit_test: true, |
| 147 | }, |
| 148 | } |
| 149 | |
Jakub Kotur | 00ae16c | 2020-12-22 09:58:47 +0100 | [diff] [blame] | 150 | rust_library { |
| 151 | name: "libcrossbeam_utils", |
| 152 | host_supported: true, |
| 153 | crate_name: "crossbeam_utils", |
Jason Macnak | 981e62f | 2021-10-08 12:12:49 -0700 | [diff] [blame] | 154 | cargo_env_compat: true, |
David LeGare | 66bcc0c | 2022-03-01 19:05:04 +0000 | [diff] [blame] | 155 | cargo_pkg_version: "0.8.7", |
Jakub Kotur | 00ae16c | 2020-12-22 09:58:47 +0100 | [diff] [blame] | 156 | srcs: ["src/lib.rs"], |
| 157 | edition: "2018", |
| 158 | features: [ |
| 159 | "default", |
| 160 | "lazy_static", |
| 161 | "std", |
| 162 | ], |
Jakub Kotur | 00ae16c | 2020-12-22 09:58:47 +0100 | [diff] [blame] | 163 | rustlibs: [ |
| 164 | "libcfg_if", |
| 165 | "liblazy_static", |
| 166 | ], |
Jason Macnak | 981e62f | 2021-10-08 12:12:49 -0700 | [diff] [blame] | 167 | apex_available: [ |
| 168 | "//apex_available:platform", |
| 169 | "com.android.virt", |
| 170 | ], |
Jakub Kotur | 00ae16c | 2020-12-22 09:58:47 +0100 | [diff] [blame] | 171 | } |