summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Maurer <mmaurer@google.com>2022-09-07 16:38:10 -0700
committerMatthew Maurer <mmaurer@google.com>2022-09-07 16:45:25 -0700
commit960abda7c6acb3da377f31401cd7e70991bf1a74 (patch)
tree6154e5607e743b235f92685a4dd22bbdc69e30bd
parentd8c31b14a56612095e5099ef3d90ca2a162a1e9c (diff)
downloadstructopt-derive-main-16k.tar.gz
Use heck-0.3.3main-16k
Structopt is EOL and will not update to 0.4 The plan for migrating off is to delete structopt after migrating clients to clap + clap-derive "tests" is removed from cargo2android.json to avoid a bug in cargo2android.py which will currently generate a test target when there are 0 tests. As this project is EOL and has no tests, this should not cause trouble. Test: mm Change-Id: I31824494e12bd6fd66a3effe4bf756a896815045
-rw-r--r--Android.bp2
-rw-r--r--cargo2android.json4
-rw-r--r--patches/0001-Use-heck-0.3.3.patch30
3 files changed, 33 insertions, 3 deletions
diff --git a/Android.bp b/Android.bp
index e008611..9e35e36 100644
--- a/Android.bp
+++ b/Android.bp
@@ -47,7 +47,7 @@ rust_proc_macro {
srcs: ["src/lib.rs"],
edition: "2018",
rustlibs: [
- "libheck",
+ "libheck_deprecated",
"libproc_macro2",
"libproc_macro_error",
"libquote",
diff --git a/cargo2android.json b/cargo2android.json
index 341300b..8c8d4d2 100644
--- a/cargo2android.json
+++ b/cargo2android.json
@@ -1,4 +1,4 @@
{
"run": true,
- "tests": true
-} \ No newline at end of file
+ "patch": "patches/0001-Use-heck-0.3.3.patch"
+}
diff --git a/patches/0001-Use-heck-0.3.3.patch b/patches/0001-Use-heck-0.3.3.patch
new file mode 100644
index 0000000..723e6bd
--- /dev/null
+++ b/patches/0001-Use-heck-0.3.3.patch
@@ -0,0 +1,30 @@
+From bde791c5d4b5744bf060152e37fea18dfc5556ce Mon Sep 17 00:00:00 2001
+From: Matthew Maurer <mmaurer@google.com>
+Date: Wed, 7 Sep 2022 16:35:34 -0700
+Subject: [PATCH] Use heck-0.3.3
+
+Structopt is EOL and will not update to 0.4
+The plan for migrating off is to delete structopt after migrating
+clients to clap + clap-derive
+
+Change-Id: I091b43aa4200873119af990be9a5d6dd6907a40b
+---
+ Android.bp | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/Android.bp b/Android.bp
+index e008611..9e35e36 100644
+--- a/Android.bp
++++ b/Android.bp
+@@ -47,7 +47,7 @@ rust_proc_macro {
+ srcs: ["src/lib.rs"],
+ edition: "2018",
+ rustlibs: [
+- "libheck",
++ "libheck_deprecated",
+ "libproc_macro2",
+ "libproc_macro_error",
+ "libquote",
+--
+2.37.2.789.g6183377224-goog
+