aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Walbran <qwandor@google.com>2023-11-08 17:23:00 +0000
committerAndrew Walbran <qwandor@google.com>2023-11-08 17:23:00 +0000
commitefa01a6dd4bbaff35c157d2886acf78693ae47f7 (patch)
tree48ee41b78c1e72eb9663462575ceb0b18d076614
parentc118b3d2e7b9cbdad5ce91da4e3b2dc2b7945c74 (diff)
downloadcfg-if-efa01a6dd4bbaff35c157d2886acf78693ae47f7.tar.gz
Migrate to cargo_embargo.
Bug: 293289578 Test: Ran cargo_embargo, compared Android.bp Change-Id: I1c88c0fc04c46264fdc2375639684ec2cf279ea0
-rw-r--r--Android.bp6
-rw-r--r--cargo2android.json12
-rw-r--r--cargo_embargo.json5
3 files changed, 7 insertions, 16 deletions
diff --git a/Android.bp b/Android.bp
index 8711098..07a3150 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 {
@@ -65,9 +65,7 @@ rust_test {
unit_test: true,
},
edition: "2018",
- rustlibs: [
- "libcfg_if",
- ],
+ rustlibs: ["libcfg_if"],
}
rust_library {
diff --git a/cargo2android.json b/cargo2android.json
deleted file mode 100644
index c789f3b..0000000
--- a/cargo2android.json
+++ /dev/null
@@ -1,12 +0,0 @@
-{
- "apex-available": [
- "//apex_available:platform",
- "//apex_available:anyapex"
- ],
- "dependencies": true,
- "device": true,
- "min-sdk-version": "29",
- "run": true,
- "tests": true,
- "vendor-available": true
-}
diff --git a/cargo_embargo.json b/cargo_embargo.json
new file mode 100644
index 0000000..16616e0
--- /dev/null
+++ b/cargo_embargo.json
@@ -0,0 +1,5 @@
+{
+ "min_sdk_version": "29",
+ "run_cargo": false,
+ "tests": true
+}