diff options
author | Andrew Walbran <qwandor@google.com> | 2023-11-09 16:21:37 +0000 |
---|---|---|
committer | Andrew Walbran <qwandor@google.com> | 2023-11-09 16:21:37 +0000 |
commit | 97bf312e35f110aa967fa143c3fc57239e7d013b (patch) | |
tree | 09dd12640f661cbbb57d1d008986ad6694332589 | |
parent | 4f87ec065823b20475775bee615c7ae2b2c10516 (diff) | |
download | ciborium-io-97bf312e35f110aa967fa143c3fc57239e7d013b.tar.gz |
Migrate to cargo_embargo.
Bug: 293289578
Test: Ran cargo_embargo, compared Android.bp
Change-Id: If5ae5547e813891862f57a42297f843950b25441
-rw-r--r-- | Android.bp | 2 | ||||
-rw-r--r-- | cargo2android.json | 18 | ||||
-rw-r--r-- | cargo_embargo.json | 27 |
3 files changed, 28 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 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 + } + } + } + ] +} |