Snap for 10975086 from c5b23273f7c0da337f12932326f2f648a7997bb2 to 24Q1-release
Change-Id: Ibbf29eb04844238619b88f23e0e2bae6659eca6f
diff --git a/Android.bp b/Android.bp
index 36ba6ab..387051e 100644
--- a/Android.bp
+++ b/Android.bp
@@ -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.
-
-
package {
default_applicable_licenses: ["external_rust_crates_anes_license"],
}
@@ -100,9 +98,7 @@
"bitflags",
"parser",
],
- rustlibs: [
- "libbitflags-1.3.2",
- ],
+ rustlibs: ["libbitflags-1.3.2"],
apex_available: [
"//apex_available:platform",
"//apex_available:anyapex",
diff --git a/cargo2android.json b/cargo2android.json
deleted file mode 100644
index eac39f0..0000000
--- a/cargo2android.json
+++ /dev/null
@@ -1,9 +0,0 @@
-{
- "device": true,
- "run": true,
- "features": "parser",
- "tests": true,
- "dep-suffixes": {
- "bitflags": "-1.3.2"
- }
-}
diff --git a/cargo_embargo.json b/cargo_embargo.json
new file mode 100644
index 0000000..71c6d2d
--- /dev/null
+++ b/cargo_embargo.json
@@ -0,0 +1,10 @@
+{
+ "tests": true,
+ "features": [
+ "parser"
+ ],
+ "module_name_overrides": {
+ "libbitflags": "libbitflags-1.3.2"
+ },
+ "run_cargo": false
+}