Migrate to cargo_embargo. am: 97bf312e35

Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/ciborium-io/+/2824416

Change-Id: Id5298c0a92b74ed15c09134f7b0655893a808193
Signed-off-by: Automerger Merge Worker <[email protected]>
diff --git a/Android.bp b/Android.bp
index f150fac..4957fee 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 {
diff --git a/cargo2android.json b/cargo2android.json
deleted file mode 100644
index 429052c..0000000
--- a/cargo2android.json
+++ /dev/null
@@ -1,18 +0,0 @@
-{
-  "device": true,
-  "run": true,
-  "dependencies": true,
-  "variants": [
-    {
-      "features": "alloc,std"
-    },
-    {
-      "alloc": true,
-      "features": "alloc",
-      "force-rlib": true,
-      "no-host": true,
-      "suffix": "_nostd",
-      "no-std": true
-    }
-  ]
-}
diff --git a/cargo_embargo.json b/cargo_embargo.json
new file mode 100644
index 0000000..560a629
--- /dev/null
+++ b/cargo_embargo.json
@@ -0,0 +1,27 @@
+{
+  "run_cargo": false,
+  "variants": [
+    {
+      "features": [
+        "alloc",
+        "std"
+      ]
+    },
+    {
+      "features": [
+        "alloc"
+      ],
+      "module_name_overrides": {
+        "libciborium_io": "libciborium_io_nostd"
+      },
+      "package": {
+        "ciborium-io": {
+          "alloc": true,
+          "force_rlib": true,
+          "host_supported": false,
+          "no_std": true
+        }
+      }
+    }
+  ]
+}