aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-11-14 00:10:46 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-11-14 00:10:46 +0000
commitf3f0437d7617ba77d3f5b512c0d22ff6e7313ad8 (patch)
tree09dd12640f661cbbb57d1d008986ad6694332589
parent4edefdf1946bfc110618a055a3ae45906814e86e (diff)
parent5316f69cdfe6c19c4e191d6c2302cbaec52c6521 (diff)
downloadciborium-io-android14-qpr2-s3-release.tar.gz
Change-Id: Ia3b1d77e18c57697b9c8318fa763865039b382f2
-rw-r--r--Android.bp2
-rw-r--r--cargo2android.json18
-rw-r--r--cargo_embargo.json27
3 files changed, 28 insertions, 19 deletions
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
+ }
+ }
+ }
+ ]
+}