aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Walbran <qwandor@google.com>2023-11-13 20:19:31 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2023-11-13 20:19:31 +0000
commit30872c7f191c2408e43b38eac4fe5f769c95d6dc (patch)
tree71284f06c1f3802a5347905922d63d075ce9bc7f
parent551157f9387fc972ef193cb4f11d0812c35d0deb (diff)
parent638d10837fa5981cfbfa0440e219513f95dcd896 (diff)
downloadciborium-ll-30872c7f191c2408e43b38eac4fe5f769c95d6dc.tar.gz
Migrate to cargo_embargo. am: 5f2cd90e64 am: 6c8ee000b5 am: 638d10837f
Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/ciborium-ll/+/2824518 Change-Id: I0b09328256e83656ac9671b2d06cbeb3657cc204 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 1f50f06..1dde19a 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 639f806..0000000
--- a/cargo2android.json
+++ /dev/null
@@ -1,21 +0,0 @@
-{
- "device": true,
- "run": true,
- "dependencies": true,
- "variants": [
- {
- "tests": true
- },
- {
- "alloc": true,
- "dep-suffixes": {
- "ciborium_io": "_nostd",
- "half": "_nostd"
- },
- "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..b2ac6c1
--- /dev/null
+++ b/cargo_embargo.json
@@ -0,0 +1,23 @@
+{
+ "run_cargo": false,
+ "variants": [
+ {
+ "tests": true
+ },
+ {
+ "module_name_overrides": {
+ "libciborium_io": "libciborium_io_nostd",
+ "libciborium_ll": "libciborium_ll_nostd",
+ "libhalf": "libhalf_nostd"
+ },
+ "package": {
+ "ciborium-ll": {
+ "alloc": true,
+ "force_rlib": true,
+ "host_supported": false,
+ "no_std": true
+ }
+ }
+ }
+ ]
+}