aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-11-11 22:11:37 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-11-11 22:11:37 +0000
commiteaa278e839da7c2d9c8c8b29e40c86688c46f2ca (patch)
treee3632568202aef7fbaa4d02c2d0b81d636a2aba9
parentb50fed121e5b983239a498a17e070156929833da (diff)
parent37247afd3f489ac99218636de5da1ceb24a4b0b2 (diff)
downloadhex-android14-qpr2-release.tar.gz
Change-Id: I8a4518ec50b0cbf82c236c6d656311bc546a6872
-rw-r--r--Android.bp2
-rw-r--r--cargo2android.json18
-rw-r--r--cargo_embargo.json22
3 files changed, 23 insertions, 19 deletions
diff --git a/Android.bp b/Android.bp
index 277e33f..bcd2bb2 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 ca16a7e..0000000
--- a/cargo2android.json
+++ /dev/null
@@ -1,18 +0,0 @@
-{
- "device": true,
- "run": true,
- "vendor-available": true,
- "variants": [
- {
- },
- {
- "device": true,
- "alloc": true,
- "no-host": true,
- "force-rlib": true,
- "suffix": "_nostd",
- "no-std": true,
- "features" : "alloc"
- }
- ]
-}
diff --git a/cargo_embargo.json b/cargo_embargo.json
new file mode 100644
index 0000000..3bbad79
--- /dev/null
+++ b/cargo_embargo.json
@@ -0,0 +1,22 @@
+{
+ "run_cargo": false,
+ "variants": [
+ {},
+ {
+ "features": [
+ "alloc"
+ ],
+ "module_name_overrides": {
+ "libhex": "libhex_nostd"
+ },
+ "package": {
+ "hex": {
+ "alloc": true,
+ "force_rlib": true,
+ "host_supported": false,
+ "no_std": true
+ }
+ }
+ }
+ ]
+}