diff options
author | Andrew Walbran <qwandor@google.com> | 2023-11-10 17:26:30 +0000 |
---|---|---|
committer | Andrew Walbran <qwandor@google.com> | 2023-11-10 17:26:30 +0000 |
commit | 09fa908e3c5e8bb1462b7fcce08c3543f5d51d5d (patch) | |
tree | e3632568202aef7fbaa4d02c2d0b81d636a2aba9 | |
parent | 1516e23c1f917a165053e8e4638734df21c202bb (diff) | |
download | hex-09fa908e3c5e8bb1462b7fcce08c3543f5d51d5d.tar.gz |
Migrate to cargo_embargo.
Bug: 293289578
Test: Ran cargo_embargo, compared Android.bp
Change-Id: I33200bac6165dcfb8d7d7b240c49f2fd00642e27
-rw-r--r-- | Android.bp | 2 | ||||
-rw-r--r-- | cargo2android.json | 18 | ||||
-rw-r--r-- | cargo_embargo.json | 22 |
3 files changed, 23 insertions, 19 deletions
@@ -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 + } + } + } + ] +} |