Update build with --device (attempt #2)

... to support building libvulkano for crosvm.

Bug: b/189133061
Test: cd external/rush/crates/vulkano && mm
Change-Id: I7353db5946dc75424bb78a14765eaf96b379afcd
diff --git a/Android.bp b/Android.bp
index bbae702..63cb45b 100644
--- a/Android.bp
+++ b/Android.bp
@@ -1,4 +1,5 @@
-// This file is generated by cargo2android.py --run --dependencies.
+// 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_libloading_license"],
@@ -17,15 +18,15 @@
     ],
 }
 
-rust_library_host {
+rust_library {
     name: "liblibloading",
+    host_supported: true,
     crate_name: "libloading",
+    cargo_env_compat: true,
+    cargo_pkg_version: "0.7.0",
     srcs: ["src/lib.rs"],
     edition: "2015",
     rustlibs: [
         "libcfg_if",
     ],
 }
-
-// dependent_library ["feature_list"]
-//   cfg-if-1.0.0
diff --git a/cargo2android.json b/cargo2android.json
new file mode 100644
index 0000000..1b6cca2
--- /dev/null
+++ b/cargo2android.json
@@ -0,0 +1,5 @@
+{
+  "dependencies": true,
+  "device": true,
+  "run": true
+}
\ No newline at end of file