diff options
author | Andrew Walbran <qwandor@google.com> | 2023-11-09 16:55:57 +0000 |
---|---|---|
committer | Andrew Walbran <qwandor@google.com> | 2023-11-09 16:55:57 +0000 |
commit | b69d9a4fee0a069e204a5387ebafec47f8a24a13 (patch) | |
tree | 3315405c216c4173af9f5e918430b4da07bbeb0f | |
parent | 236ad766bdaed2228a986a9901ddcb52b007b52e (diff) | |
download | vhost-b69d9a4fee0a069e204a5387ebafec47f8a24a13.tar.gz |
Migrate to cargo_embargo.
Bug: 293289578
Test: Ran cargo_embargo, compared Android.bp
Change-Id: Iabba3c0579e21f82b755c87653e90dfd07e3df7d
-rw-r--r-- | Android.bp | 4 | ||||
-rw-r--r-- | cargo2android.json | 9 | ||||
-rw-r--r-- | cargo_embargo.json | 18 |
3 files changed, 19 insertions, 12 deletions
@@ -1,8 +1,6 @@ -// 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. - - rust_library_host { name: "libvhost_android", crate_name: "vhost", diff --git a/cargo2android.json b/cargo2android.json deleted file mode 100644 index f3781ef..0000000 --- a/cargo2android.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "run": true, - "name-suffix": "_android", - "features": "default,vhost-user,vhost-user-slave", - "dep-suffixes": { - "bitflags": "-1.3.2", - "vm_memory": "_android" - } -} diff --git a/cargo_embargo.json b/cargo_embargo.json new file mode 100644 index 0000000..3f73d27 --- /dev/null +++ b/cargo_embargo.json @@ -0,0 +1,18 @@ +{ + "features": [ + "default", + "vhost-user", + "vhost-user-slave" + ], + "module_name_overrides": { + "libbitflags": "libbitflags-1.3.2", + "libvhost": "libvhost_android", + "libvm_memory": "libvm_memory_android" + }, + "package": { + "vhost": { + "device_supported": false + } + }, + "run_cargo": false +} |