Migrate to cargo_embargo. am: 8db550a9e9

Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/threadpool/+/2828054

Change-Id: I7089c1a741b2b4895f6b543b4e80ad53cf02fef8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
diff --git a/Android.bp b/Android.bp
index 3372a0a..ef95523 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 {
@@ -20,16 +20,13 @@
 
 rust_library {
     name: "libthreadpool",
-    // has rustc warnings
     host_supported: true,
     crate_name: "threadpool",
     cargo_env_compat: true,
     cargo_pkg_version: "1.8.1",
     srcs: ["src/lib.rs"],
     edition: "2015",
-    rustlibs: [
-        "libnum_cpus",
-    ],
+    rustlibs: ["libnum_cpus"],
     apex_available: [
         "//apex_available:platform",
         "//apex_available:anyapex",
diff --git a/cargo2android.json b/cargo2android.json
deleted file mode 100644
index 1b6cca2..0000000
--- a/cargo2android.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
-  "dependencies": true,
-  "device": true,
-  "run": true
-}
\ No newline at end of file
diff --git a/cargo_embargo.json b/cargo_embargo.json
new file mode 100644
index 0000000..cb908d7
--- /dev/null
+++ b/cargo_embargo.json
@@ -0,0 +1,3 @@
+{
+  "run_cargo": false
+}