aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Walbran <qwandor@google.com>2023-11-10 16:19:38 +0000
committerAndrew Walbran <qwandor@google.com>2023-11-10 16:19:38 +0000
commit1e28b5203368103a02d575bdda5d335551b651c8 (patch)
treef6dfe5b2ec13a83b41d6c7b1ad97b6aea44fa761
parentd338c6c4beed2b49ec02091c6aab60f8e478fae4 (diff)
downloadclap_lex-1e28b5203368103a02d575bdda5d335551b651c8.tar.gz
Migrate to cargo_embargo.
Bug: 293289578 Test: Ran cargo_embargo, compared Android.bp Change-Id: Iffb3286079aba1e2ebdcf00e5f83edb747076c4d
-rw-r--r--Android.bp6
-rw-r--r--cargo2android.json6
-rw-r--r--cargo_embargo.json3
3 files changed, 5 insertions, 10 deletions
diff --git a/Android.bp b/Android.bp
index 48335d3..4e73ba7 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 {
@@ -45,9 +45,7 @@ rust_library {
cargo_pkg_version: "0.3.2",
srcs: ["src/lib.rs"],
edition: "2021",
- rustlibs: [
- "libos_str_bytes",
- ],
+ rustlibs: ["libos_str_bytes"],
apex_available: [
"//apex_available:platform",
"//apex_available:anyapex",
diff --git a/cargo2android.json b/cargo2android.json
deleted file mode 100644
index 3ebdf72..0000000
--- a/cargo2android.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "dependencies": true,
- "device": true,
- "run": true,
- "tests": true
-}
diff --git a/cargo_embargo.json b/cargo_embargo.json
new file mode 100644
index 0000000..9a0a579
--- /dev/null
+++ b/cargo_embargo.json
@@ -0,0 +1,3 @@
+{
+ "tests": true
+}