Add Android.bp am: 8ea5f7c86d am: 2ab4591102 am: 4bb8111a34
Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/fastrand/+/2452805
Change-Id: I7dea5df328e96a63d27198c96082526915640eef
Signed-off-by: Automerger Merge Worker <[email protected]>
diff --git a/Android.bp b/Android.bp
new file mode 100644
index 0000000..38adde8
--- /dev/null
+++ b/Android.bp
@@ -0,0 +1,18 @@
+// This file is generated by cargo2android.py --config cargo2android.json.
+// Do not modify this file as changes will be overridden on upgrade.
+
+
+
+rust_library {
+ name: "libfastrand",
+ host_supported: true,
+ crate_name: "fastrand",
+ cargo_env_compat: true,
+ cargo_pkg_version: "1.8.0",
+ srcs: ["src/lib.rs"],
+ edition: "2018",
+ apex_available: [
+ "//apex_available:platform",
+ "com.android.virt",
+ ],
+}
diff --git a/cargo2android.json b/cargo2android.json
new file mode 100644
index 0000000..5c18d15
--- /dev/null
+++ b/cargo2android.json
@@ -0,0 +1,9 @@
+{
+ "apex-available": [
+ "//apex_available:platform",
+ "com.android.virt"
+ ],
+ "dependencies": true,
+ "device": true,
+ "run": true
+}