aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Walbran <qwandor@google.com>2023-11-10 17:38:51 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2023-11-10 17:38:51 +0000
commitef7395fff515c0be9672c59e1d32d00f616c03ee (patch)
tree726bd174e7f88507130c7765f17cbbd705644b09
parente594fd192f24bfa232d773547c58662c9d72be3f (diff)
parent486fd8ae36820dc2eccb54366c4c889b1e9ffc1f (diff)
downloadciborium-ef7395fff515c0be9672c59e1d32d00f616c03ee.tar.gz
Migrate to cargo_embargo. am: 486fd8ae36
Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/ciborium/+/2824516 Change-Id: I890b3dc1b019db3d3f498906c434c2895d905568 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-rw-r--r--Android.bp2
-rw-r--r--cargo2android.json21
-rw-r--r--cargo_embargo.json23
3 files changed, 24 insertions, 22 deletions
diff --git a/Android.bp b/Android.bp
index fad6722..f3c5b57 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 d457e20..0000000
--- a/cargo2android.json
+++ /dev/null
@@ -1,21 +0,0 @@
-{
- "device": true,
- "run": true,
- "dependencies": true,
- "variants": [
- {},
- {
- "alloc": true,
- "dep-suffixes": {
- "ciborium_io": "_nostd",
- "ciborium_ll": "_nostd",
- "serde": "_nostd"
- },
- "features": "",
- "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..8380dba
--- /dev/null
+++ b/cargo_embargo.json
@@ -0,0 +1,23 @@
+{
+ "run_cargo": false,
+ "variants": [
+ {},
+ {
+ "features": [],
+ "module_name_overrides": {
+ "libciborium": "libciborium_nostd",
+ "libciborium_io": "libciborium_io_nostd",
+ "libciborium_ll": "libciborium_ll_nostd",
+ "libserde": "libserde_nostd"
+ },
+ "package": {
+ "ciborium": {
+ "alloc": true,
+ "force_rlib": true,
+ "host_supported": false,
+ "no_std": true
+ }
+ }
+ }
+ ]
+}