Snap for 7325276 from f01cacb86e74d8c83163a8e06ca05c88e142e82e to sc-release am: cb8e63252c
Original change: https://googleplex-android-review.googlesource.com/c/platform/external/rust/crates/num_cpus/+/14372029
Change-Id: I439065cae7ec031ea9ccde7b95a745f61c5d0a17
diff --git a/Android.bp b/Android.bp
index 53fe4fc..d6b8998 100644
--- a/Android.bp
+++ b/Android.bp
@@ -1,4 +1,5 @@
-// This file is generated by cargo2android.py --run --dependencies --device --patch=patches/Android.bp.patch.
+// This file is generated by cargo2android.py --config cargo2android.json.
+// Do not modify this file as changes will be overridden on upgrade.
package {
default_applicable_licenses: ["external_rust_crates_num_cpus_license"],
@@ -52,4 +53,4 @@
}
// dependent_library ["feature_list"]
-// libc-0.2.81 "default,std"
+// libc-0.2.94 "default,std"
diff --git a/cargo2android.json b/cargo2android.json
new file mode 100644
index 0000000..42b7833
--- /dev/null
+++ b/cargo2android.json
@@ -0,0 +1,9 @@
+{
+ "apex-available": [
+ "//apex_available:platform",
+ "com.android.virt"
+ ],
+ "dependencies": true,
+ "device": true,
+ "run": true
+}
\ No newline at end of file
diff --git a/patches/Android.bp.patch b/patches/Android.bp.patch
deleted file mode 100644
index 968209d..0000000
--- a/patches/Android.bp.patch
+++ /dev/null
@@ -1,15 +0,0 @@
-diff --git a/Android.bp b/Android.bp
-index 5c46750..fd8d3d0 100644
---- a/Android.bp
-+++ b/Android.bp
-@@ -9,6 +9,10 @@ rust_library {
- rustlibs: [
- "liblibc",
- ],
-+ apex_available: [
-+ "//apex_available:platform",
-+ "com.android.virt",
-+ ],
- }
-
- // dependent_library ["feature_list"]