Include module dependencies under `data`

Bug: 269138674
Test: Presubmit
Change-Id: I6ea048ee49fdf4ded18439fbd961240bb5985e52
diff --git a/libs/binder/rust/tests/Android.bp b/libs/binder/rust/tests/Android.bp
index 2d1175b..1c875c0 100644
--- a/libs/binder/rust/tests/Android.bp
+++ b/libs/binder/rust/tests/Android.bp
@@ -23,6 +23,9 @@
     // this cannot be the same as the module name.
     stem: "rustBinderTestClientBinary",
     test_suites: ["general-tests"],
+    data: [
+        ":rustBinderTestService",
+    ],
 }
 
 rust_test {
@@ -36,10 +39,6 @@
     // this cannot be the same as the module name.
     stem: "rustBinderTestServiceBinary",
     test_harness: false,
-    // TODO(b/164473602): Remove this setting and add the module to `data`
-    // attribute of rustBinderTest.
-    auto_gen_config: false,
-    test_suites: ["general-tests"],
 }
 
 cc_test {
@@ -100,7 +99,7 @@
         "libbase",
     ],
     static_libs: [
-        "libbinder_rs_serialization_test"
+        "libbinder_rs_serialization_test",
     ],
     srcs: [
         "serialization.cpp",
@@ -116,8 +115,10 @@
     source_stem: "bindings",
     cpp_std: "gnu++17",
     bindgen_flags: [
-        "--allowlist-type", "Transaction",
-        "--allowlist-var", "TESTDATA_.*",
+        "--allowlist-type",
+        "Transaction",
+        "--allowlist-var",
+        "TESTDATA_.*",
     ],
 
     shared_libs: [