summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2022-05-10 07:09:40 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2022-05-10 07:09:40 +0000
commit7c36fa8682a76452539bfe98de702276fa882abd (patch)
treeee5f57fcda7aa67a9ab5b8d75bb009441b4477b8
parenta7b8200d042a4b6818d1a17e3a2d9586ef88c821 (diff)
parent84a12a4d267411fa4a3cac53a4883653181044ee (diff)
downloadtinyvec_macros-android13-mainline-conscrypt-release.tar.gz
Snap for 8564071 from 84a12a4d267411fa4a3cac53a4883653181044ee to mainline-conscrypt-releaseaml_con_331413000aml_con_331411000aml_con_331312000aml_con_331115000aml_con_331011010android13-mainline-conscrypt-release
Change-Id: I11d906024f35510d9cbd25246a1aca54463551fd
-rw-r--r--Android.bp24
-rw-r--r--TEST_MAPPING23
2 files changed, 23 insertions, 24 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 710401c..15c97a1 100644
--- a/TEST_MAPPING
+++ b/TEST_MAPPING
@@ -1,8 +1,27 @@
-// Generated by cargo2android.py for tests in Android.bp
+// Generated by update_crate_tests.py for tests that depend on this crate.
{
+ "imports": [
+ {
+ "path": "external/rust/crates/quiche"
+ },
+ {
+ "path": "external/rust/crates/tinyvec"
+ },
+ {
+ "path": "external/rust/crates/unicode-normalization"
+ },
+ {
+ "path": "external/rust/crates/url"
+ }
+ ],
"presubmit": [
{
- "name": "tinyvec_macros_device_test_src_lib"
+ "name": "doh_unit_test"
+ }
+ ],
+ "presubmit-rust": [
+ {
+ "name": "doh_unit_test"
}
]
}