diff options
-rw-r--r-- | Android.bp | 22 | ||||
-rw-r--r-- | TEST_MAPPING | 26 | ||||
-rw-r--r-- | cargo2android.json | 5 |
3 files changed, 50 insertions, 3 deletions
@@ -1,4 +1,5 @@ -// This file is generated by cargo2android.py --run --dependencies --device. +// 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: ["external_rust_crates_lazycell_license"], @@ -36,10 +37,29 @@ license { ], } +rust_test { + name: "lazycell_test_src_lib", + // has rustc warnings + host_supported: true, + crate_name: "lazycell", + cargo_env_compat: true, + cargo_pkg_version: "1.3.0", + srcs: ["src/lib.rs"], + test_suites: ["general-tests"], + auto_gen_config: true, + test_options: { + unit_test: true, + }, + edition: "2015", +} + rust_library { name: "liblazycell", + // has rustc warnings host_supported: true, crate_name: "lazycell", + cargo_env_compat: true, + cargo_pkg_version: "1.3.0", srcs: ["src/lib.rs"], edition: "2015", } diff --git a/TEST_MAPPING b/TEST_MAPPING index 6716814..ff34c26 100644 --- a/TEST_MAPPING +++ b/TEST_MAPPING @@ -1,8 +1,30 @@ -// 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/libsqlite3-sys" + } + ], "presubmit": [ { - "name": "libsqlite3-sys_device_test_src_lib" + "name": "keystore2_test" + }, + { + "name": "lazycell_test_src_lib" + }, + { + "name": "legacykeystore_test" + } + ], + "presubmit-rust": [ + { + "name": "keystore2_test" + }, + { + "name": "lazycell_test_src_lib" + }, + { + "name": "legacykeystore_test" } ] } diff --git a/cargo2android.json b/cargo2android.json new file mode 100644 index 0000000..d36fb44 --- /dev/null +++ b/cargo2android.json @@ -0,0 +1,5 @@ +{ + "device": true, + "run": true, + "tests": true +}
\ No newline at end of file |