aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-12-01 00:15:08 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-12-01 00:15:08 +0000
commit4218bdb97e96e6b548cda9b0f56e6f2e43924793 (patch)
tree631e4922731e297477dba699be89bee8be2db78a
parent20a455b9c914a78c40c21120d66f098287e07c30 (diff)
parent45bbef38346cd1f14df00d3194d7cf57835fbd79 (diff)
downloadunicode-bidi-android14-qpr2-s3-release.tar.gz
Change-Id: Ie7338d8a0386f0b68bd8e9968358a25bccea32b3
-rw-r--r--Android.bp8
-rw-r--r--Cargo.toml5
-rw-r--r--cargo2android.json11
-rw-r--r--cargo_embargo.json9
-rw-r--r--patches/remove_missing_test.patch16
5 files changed, 27 insertions, 22 deletions
diff --git a/Android.bp b/Android.bp
index 86d4b8e..df86c52 100644
--- a/Android.bp
+++ b/Android.bp
@@ -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 {
@@ -40,7 +40,6 @@ license {
rust_library {
name: "libunicode_bidi",
- // has rustc warnings
host_supported: true,
crate_name: "unicode_bidi",
cargo_env_compat: true,
@@ -63,7 +62,6 @@ rust_library {
rust_test {
name: "unicode-bidi_test_src_lib",
- // has rustc warnings
host_supported: true,
crate_name: "unicode_bidi",
cargo_env_compat: true,
@@ -80,7 +78,5 @@ rust_test {
"hardcoded-data",
"std",
],
- rustlibs: [
- "libserde_test",
- ],
+ rustlibs: ["libserde_test"],
}
diff --git a/Cargo.toml b/Cargo.toml
index 02ea8fa..73aff86 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -42,11 +42,6 @@ repository = "https://github.com/servo/unicode-bidi"
[lib]
name = "unicode_bidi"
-[[test]]
-name = "conformance_tests"
-path = "tests/conformance_tests.rs"
-required-features = ["hardcoded-data"]
-
[dependencies.flame]
version = "0.2"
optional = true
diff --git a/cargo2android.json b/cargo2android.json
deleted file mode 100644
index 911c36f..0000000
--- a/cargo2android.json
+++ /dev/null
@@ -1,11 +0,0 @@
-{
- "apex-available": [
- "//apex_available:platform",
- "com.android.resolv"
- ],
- "dependencies": true,
- "device": true,
- "min-sdk-version": "29",
- "run": true,
- "tests": true
-} \ No newline at end of file
diff --git a/cargo_embargo.json b/cargo_embargo.json
new file mode 100644
index 0000000..b8ed541
--- /dev/null
+++ b/cargo_embargo.json
@@ -0,0 +1,9 @@
+{
+ "apex_available": [
+ "//apex_available:platform",
+ "com.android.resolv"
+ ],
+ "min_sdk_version": "29",
+ "run_cargo": false,
+ "tests": true
+}
diff --git a/patches/remove_missing_test.patch b/patches/remove_missing_test.patch
new file mode 100644
index 0000000..5a69521
--- /dev/null
+++ b/patches/remove_missing_test.patch
@@ -0,0 +1,16 @@
+diff --git a/Cargo.toml b/Cargo.toml
+index 02ea8fa..73aff86 100644
+--- a/Cargo.toml
++++ b/Cargo.toml
+@@ -42,11 +42,6 @@ repository = "https://github.com/servo/unicode-bidi"
+ [lib]
+ name = "unicode_bidi"
+
+-[[test]]
+-name = "conformance_tests"
+-path = "tests/conformance_tests.rs"
+-required-features = ["hardcoded-data"]
+-
+ [dependencies.flame]
+ version = "0.2"
+ optional = true