diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-11-15 00:09:48 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-11-15 00:09:48 +0000 |
commit | 1f2184a8fb665016f9c5950ed04ccd7511268bc1 (patch) | |
tree | fff4536eb5b2c3296727f80bb3377e3cfafbfbfc | |
parent | 1d49542145448b6f880d450c4633120f4328fc4e (diff) | |
parent | 0ee068ce961850c2d9da2498c19b414cc6282d35 (diff) | |
download | hashlink-1f2184a8fb665016f9c5950ed04ccd7511268bc1.tar.gz |
Snap for 11098506 from 0ee068ce961850c2d9da2498c19b414cc6282d35 to sdk-release
Change-Id: I48a540fb13100b7018dc308e0dfd4811745b17d8
-rw-r--r-- | Android.bp | 53 | ||||
-rw-r--r-- | cargo2android.json | 5 | ||||
-rw-r--r-- | cargo_embargo.json | 3 |
3 files changed, 37 insertions, 24 deletions
@@ -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 { @@ -37,13 +37,18 @@ license { ], } -rust_defaults { - name: "hashlink_test_defaults", - crate_name: "hashlink", +rust_test { + name: "hashlink_test_tests_linked_hash_map", + host_supported: true, + crate_name: "linked_hash_map", cargo_env_compat: true, cargo_pkg_version: "0.8.1", + srcs: ["tests/linked_hash_map.rs"], test_suites: ["general-tests"], auto_gen_config: true, + test_options: { + unit_test: true, + }, edition: "2018", rustlibs: [ "libfxhash", @@ -54,33 +59,45 @@ rust_defaults { } rust_test { - name: "hashlink_test_tests_linked_hash_map", - defaults: ["hashlink_test_defaults"], - host_supported: true, - srcs: ["tests/linked_hash_map.rs"], - test_options: { - unit_test: true, - }, -} - -rust_test { name: "hashlink_test_tests_linked_hash_set", - defaults: ["hashlink_test_defaults"], host_supported: true, + crate_name: "linked_hash_set", + cargo_env_compat: true, + cargo_pkg_version: "0.8.1", srcs: ["tests/linked_hash_set.rs"], + test_suites: ["general-tests"], + auto_gen_config: true, test_options: { unit_test: true, }, + edition: "2018", + rustlibs: [ + "libfxhash", + "libhashbrown", + "libhashlink", + "libserde_test", + ], } rust_test { name: "hashlink_test_tests_lru_cache", - defaults: ["hashlink_test_defaults"], host_supported: true, + crate_name: "lru_cache", + cargo_env_compat: true, + cargo_pkg_version: "0.8.1", srcs: ["tests/lru_cache.rs"], + test_suites: ["general-tests"], + auto_gen_config: true, test_options: { unit_test: true, }, + edition: "2018", + rustlibs: [ + "libfxhash", + "libhashbrown", + "libhashlink", + "libserde_test", + ], } rust_library { @@ -91,9 +108,7 @@ rust_library { cargo_pkg_version: "0.8.1", srcs: ["src/lib.rs"], edition: "2018", - rustlibs: [ - "libhashbrown", - ], + rustlibs: ["libhashbrown"], apex_available: [ "//apex_available:platform", "//apex_available:anyapex", diff --git a/cargo2android.json b/cargo2android.json deleted file mode 100644 index ff6df50..0000000 --- a/cargo2android.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "device": true, - "run": true, - "tests": true -} diff --git a/cargo_embargo.json b/cargo_embargo.json new file mode 100644 index 0000000..9a0a579 --- /dev/null +++ b/cargo_embargo.json @@ -0,0 +1,3 @@ +{ + "tests": true +} |