Use cargo2android.py with a patch file.
* No need to manually fix the .bp file after a version upgrade.
* post_update.sh is no longer needed.
Bug: 172093078
Test: make and regenerate .bp
Change-Id: I72e06f0a59c281211b21bb5b2891f9123da73457
diff --git a/patches/Android.bp.patch b/patches/Android.bp.patch
new file mode 100644
index 0000000..4f03f0b
--- /dev/null
+++ b/patches/Android.bp.patch
@@ -0,0 +1,12 @@
+diff --git b/Android.bp a/Android.bp
+index 41d67cc..277296f 100644
+--- b/Android.bp
++++ a/Android.bp
+@@ -23,6 +23,6 @@ rust_library {
+ "--cfg ops_bound",
+ "--cfg range_inclusive",
+ "--cfg std_atomic",
+- "--cfg std_atomic64",
++ // "--cfg std_atomic64", // not for arm/arm64
+ ],
+ }