summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Galenson <jgalenson@google.com>2021-12-15 17:27:08 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2021-12-15 17:27:08 +0000
commit1157fa13dc217b6ef3b28a2882f293a948b2abe0 (patch)
treeee5f57fcda7aa67a9ab5b8d75bb009441b4477b8
parent961cf4ca77fd7f5d8087531e723818fc35f9b78c (diff)
parenta0339a2e94e21f0a00796c49ddaf9c4b101b7c31 (diff)
downloadtinyvec_macros-1157fa13dc217b6ef3b28a2882f293a948b2abe0.tar.gz
Merge "Refresh Android.bp, cargo2android.json, TEST_MAPPING." am: 89cebdd075 am: 64de7a34b9 am: a0339a2e94
Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/tinyvec_macros/+/1912819 Change-Id: I5a195208c9696a7fa34019942c7bde1c66b52b55
-rw-r--r--Android.bp24
-rw-r--r--TEST_MAPPING25
2 files changed, 15 insertions, 34 deletions
diff --git a/Android.bp b/Android.bp
index c2c3631..15ad891 100644
--- a/Android.bp
+++ b/Android.bp
@@ -37,6 +37,8 @@ rust_library {
name: "libtinyvec_macros",
host_supported: true,
crate_name: "tinyvec_macros",
+ cargo_env_compat: true,
+ cargo_pkg_version: "0.1.0",
srcs: ["src/lib.rs"],
edition: "2018",
apex_available: [
@@ -45,25 +47,3 @@ rust_library {
],
min_sdk_version: "29",
}
-
-rust_defaults {
- name: "tinyvec_macros_defaults",
- crate_name: "tinyvec_macros",
- srcs: ["src/lib.rs"],
- test_suites: ["general-tests"],
- auto_gen_config: true,
- edition: "2018",
-}
-
-rust_test_host {
- name: "tinyvec_macros_host_test_src_lib",
- defaults: ["tinyvec_macros_defaults"],
- test_options: {
- unit_test: true,
- },
-}
-
-rust_test {
- name: "tinyvec_macros_device_test_src_lib",
- defaults: ["tinyvec_macros_defaults"],
-}
diff --git a/TEST_MAPPING b/TEST_MAPPING
index dedf783..15c97a1 100644
--- a/TEST_MAPPING
+++ b/TEST_MAPPING
@@ -1,26 +1,27 @@
// Generated by update_crate_tests.py for tests that depend on this crate.
{
- "presubmit": [
- {
- "name": "doh_unit_test"
- },
+ "imports": [
{
- "name": "quiche_device_test_src_lib"
+ "path": "external/rust/crates/quiche"
},
{
- "name": "tinyvec_macros_device_test_src_lib"
+ "path": "external/rust/crates/tinyvec"
},
{
- "name": "unicode-normalization_device_test_src_lib"
+ "path": "external/rust/crates/unicode-normalization"
},
{
- "name": "url_device_test_src_lib"
- },
+ "path": "external/rust/crates/url"
+ }
+ ],
+ "presubmit": [
{
- "name": "url_device_test_tests_data"
- },
+ "name": "doh_unit_test"
+ }
+ ],
+ "presubmit-rust": [
{
- "name": "url_device_test_tests_unit"
+ "name": "doh_unit_test"
}
]
}