Make available for use on device.

Bug: 260692911
Test: m libthreadpool
Change-Id: If3eabb2778844b275ae2948095833f8c9ceedb71
diff --git a/Android.bp b/Android.bp
index da493f3..3372a0a 100644
--- a/Android.bp
+++ b/Android.bp
@@ -1,8 +1,6 @@
 // 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_threadpool_license"],
 }
@@ -20,9 +18,10 @@
     ],
 }
 
-rust_library_host {
+rust_library {
     name: "libthreadpool",
     // has rustc warnings
+    host_supported: true,
     crate_name: "threadpool",
     cargo_env_compat: true,
     cargo_pkg_version: "1.8.1",
@@ -31,6 +30,10 @@
     rustlibs: [
         "libnum_cpus",
     ],
+    apex_available: [
+        "//apex_available:platform",
+        "//apex_available:anyapex",
+    ],
     product_available: true,
     vendor_available: true,
 }
diff --git a/cargo2android.json b/cargo2android.json
index 1d33ddd..1b6cca2 100644
--- a/cargo2android.json
+++ b/cargo2android.json
@@ -1,3 +1,5 @@
 {
-    "run": true
-}
+  "dependencies": true,
+  "device": true,
+  "run": true
+}
\ No newline at end of file