diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2021-08-25 03:04:50 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2021-08-25 03:04:50 +0000 |
commit | bfdd9cc2c6abc870f7c12b67cb3392e7ad4efbd9 (patch) | |
tree | db175720d64dec30fc41fab013c687c0a878bcb5 | |
parent | 9762fde421d24bf19a779969c234636adc898d7d (diff) | |
parent | 2cebbfdf521586aad48720d5c2884f6c15299906 (diff) | |
download | fallible-streaming-iterator-bfdd9cc2c6abc870f7c12b67cb3392e7ad4efbd9.tar.gz |
Snap for 7671334 from 2cebbfdf521586aad48720d5c2884f6c15299906 to tm-release
Change-Id: Ib99c16983ee4bb48996829a9581eebdf4667b28d
-rw-r--r-- | Android.bp | 22 | ||||
-rw-r--r-- | TEST_MAPPING | 8 | ||||
-rw-r--r-- | cargo2android.json | 6 |
3 files changed, 25 insertions, 11 deletions
@@ -1,4 +1,5 @@ -// This file is generated by cargo2android.py --device --run --dependencies --test --features=std. +// This file is generated by cargo2android.py --config cargo2android.json. +// Do not modify this file as changes will be overridden on upgrade. package { default_applicable_licenses: [ @@ -39,26 +40,27 @@ license { } rust_defaults { - name: "fallible-streaming-iterator_defaults", + name: "fallible-streaming-iterator_test_defaults", crate_name: "fallible_streaming_iterator", // has rustc warnings srcs: ["src/lib.rs"], test_suites: ["general-tests"], auto_gen_config: true, edition: "2015", - features: [ - "std", - ], + features: ["std"], } rust_test_host { name: "fallible-streaming-iterator_host_test_src_lib", - defaults: ["fallible-streaming-iterator_defaults"], + defaults: ["fallible-streaming-iterator_test_defaults"], + test_options: { + unit_test: true, + }, } rust_test { name: "fallible-streaming-iterator_device_test_src_lib", - defaults: ["fallible-streaming-iterator_defaults"], + defaults: ["fallible-streaming-iterator_test_defaults"], } rust_library { @@ -66,9 +68,9 @@ rust_library { // has rustc warnings host_supported: true, crate_name: "fallible_streaming_iterator", + cargo_env_compat: true, + cargo_pkg_version: "0.1.9", srcs: ["src/lib.rs"], edition: "2015", - features: [ - "std", - ], + features: ["std"], } diff --git a/TEST_MAPPING b/TEST_MAPPING index 3b7bc44..9756bc6 100644 --- a/TEST_MAPPING +++ b/TEST_MAPPING @@ -1,8 +1,14 @@ -// Generated by cargo2android.py for tests in Android.bp +// Generated by update_crate_tests.py for tests that depend on this crate. { "presubmit": [ { "name": "fallible-streaming-iterator_device_test_src_lib" + }, + { + "name": "keystore2_test" + }, + { + "name": "legacykeystore_test" } ] } diff --git a/cargo2android.json b/cargo2android.json new file mode 100644 index 0000000..fba20cf --- /dev/null +++ b/cargo2android.json @@ -0,0 +1,6 @@ +{ + "device": true, + "features": "std", + "run": true, + "tests": true +}
\ No newline at end of file |