aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-11-15 00:11:15 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-11-15 00:11:15 +0000
commit85dadbf71e8bfc6d1de8976f2e270d6e84f501a3 (patch)
tree8a763a1c5550d7d09e4a8f40721ff3f388c15895
parent25152e5dd42aebd92fc87a8fd1657473d3560f68 (diff)
parentf56f35bc218616237b290b2de82ff3a341959e58 (diff)
downloadcrossbeam-queue-android14-qpr2-s2-release.tar.gz
Change-Id: Ife984bd6151235bd76777f58f47853a01d9eea27
-rw-r--r--Android.bp41
-rw-r--r--cargo_embargo.json (renamed from cargo2android.json)6
2 files changed, 28 insertions, 19 deletions
diff --git a/Android.bp b/Android.bp
index 047b21e..c11e446 100644
--- a/Android.bp
+++ b/Android.bp
@@ -1,4 +1,4 @@
-// This file is generated by cargo2android.py --config cargo2android.json.
+// This file is generated by cargo_embargo.
// Do not modify this file as changes will be overridden on upgrade.
package {
@@ -39,13 +39,18 @@ license {
],
}
-rust_defaults {
- name: "crossbeam-queue_test_defaults",
- crate_name: "crossbeam_queue",
+rust_test {
+ name: "crossbeam-queue_test_tests_array_queue",
+ host_supported: true,
+ crate_name: "array_queue",
cargo_env_compat: true,
cargo_pkg_version: "0.3.8",
+ srcs: ["tests/array_queue.rs"],
test_suites: ["general-tests"],
auto_gen_config: true,
+ test_options: {
+ unit_test: true,
+ },
edition: "2018",
features: [
"alloc",
@@ -61,23 +66,29 @@ rust_defaults {
}
rust_test {
- name: "crossbeam-queue_test_tests_array_queue",
- defaults: ["crossbeam-queue_test_defaults"],
- host_supported: true,
- srcs: ["tests/array_queue.rs"],
- test_options: {
- unit_test: true,
- },
-}
-
-rust_test {
name: "crossbeam-queue_test_tests_seg_queue",
- defaults: ["crossbeam-queue_test_defaults"],
host_supported: true,
+ crate_name: "seg_queue",
+ cargo_env_compat: true,
+ cargo_pkg_version: "0.3.8",
srcs: ["tests/seg_queue.rs"],
+ test_suites: ["general-tests"],
+ auto_gen_config: true,
test_options: {
unit_test: true,
},
+ edition: "2018",
+ features: [
+ "alloc",
+ "default",
+ "std",
+ ],
+ rustlibs: [
+ "libcfg_if",
+ "libcrossbeam_queue",
+ "libcrossbeam_utils",
+ "librand",
+ ],
}
rust_library {
diff --git a/cargo2android.json b/cargo_embargo.json
index 6e516e0..7f14879 100644
--- a/cargo2android.json
+++ b/cargo_embargo.json
@@ -1,9 +1,7 @@
{
- "apex-available": [
+ "apex_available": [
"//apex_available:platform",
"com.android.virt"
],
- "device": true,
- "run": true,
"tests": true
-} \ No newline at end of file
+}