aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2021-12-16 02:06:30 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2021-12-16 02:06:30 +0000
commite23be4e42a8d2c4c8638329e2a66b41532ecd7ba (patch)
tree4c7c7f58fc7141686b0c8665aea7c9129ed9fab7
parent2ee11fa1b1d0ed7f9cd7f089dd63c1600d20001a (diff)
parente863e8b505c2a6ab4a881966460c27cc5e645fc0 (diff)
downloadsame-file-android13-d1-s3-release.tar.gz
Change-Id: I0015e133c7d64473ac8f0f35e3e60bb7bfb7766c
-rw-r--r--Android.bp4
-rw-r--r--TEST_MAPPING12
-rw-r--r--cargo2android.json4
3 files changed, 13 insertions, 7 deletions
diff --git a/Android.bp b/Android.bp
index e3e1f05..6513a97 100644
--- a/Android.bp
+++ b/Android.bp
@@ -1,4 +1,4 @@
-// This file is generated by cargo2android.py --run --device --dependencies.
+// This file is generated by cargo2android.py --config cargo2android.json.
// Do not modify this file as changes will be overridden on upgrade.
package {
@@ -42,6 +42,8 @@ rust_library {
name: "libsame_file",
host_supported: true,
crate_name: "same_file",
+ cargo_env_compat: true,
+ cargo_pkg_version: "1.0.6",
srcs: ["src/lib.rs"],
edition: "2018",
}
diff --git a/TEST_MAPPING b/TEST_MAPPING
index 05c6d70..87ecd5c 100644
--- a/TEST_MAPPING
+++ b/TEST_MAPPING
@@ -1,20 +1,20 @@
// Generated by update_crate_tests.py for tests that depend on this crate.
{
- "presubmit": [
+ "imports": [
{
- "name": "base64_device_test_tests_decode"
+ "path": "external/rust/crates/base64"
},
{
- "name": "base64_device_test_tests_encode"
+ "path": "external/rust/crates/bitflags"
},
{
- "name": "base64_device_test_tests_helpers"
+ "path": "external/rust/crates/tinytemplate"
},
{
- "name": "unicode-xid_device_test_src_lib"
+ "path": "external/rust/crates/tinyvec"
},
{
- "name": "unicode-xid_device_test_tests_exhaustive_tests"
+ "path": "external/rust/crates/unicode-xid"
}
]
}
diff --git a/cargo2android.json b/cargo2android.json
new file mode 100644
index 0000000..bf78496
--- /dev/null
+++ b/cargo2android.json
@@ -0,0 +1,4 @@
+{
+ "device": true,
+ "run": true
+} \ No newline at end of file