Enable tests that depend on bincode

The bincode crate was imported in b/330683225, so we can now enable unit tests for crates which uses it as a dev-dependency.

Bug: 333560480
Flag: TEST_ONLY
Test: atest --host 'chrono_test_*'
Change-Id: Iad7500e927ad276578bb010eb8542e5533915168
diff --git a/Android.bp b/Android.bp
index 282909e..6ae9513 100644
--- a/Android.bp
+++ b/Android.bp
@@ -1,5 +1,6 @@
 // This file is generated by cargo_embargo.
-// Do not modify this file as most changes will be overridden on upgrade.
+// Do not modify this file after the first "rust_*" or "genrule" module
+// because the changes will be overridden on upgrade.
 // Content before the first "rust_*" or "genrule" module is preserved.
 
 package {
@@ -32,6 +33,121 @@
     ],
 }
 
+rust_test {
+    name: "chrono_test_src_lib",
+    host_supported: true,
+    crate_name: "chrono",
+    cargo_env_compat: true,
+    cargo_pkg_version: "0.4.34",
+    srcs: ["src/lib.rs"],
+    test_suites: ["general-tests"],
+    auto_gen_config: true,
+    test_options: {
+        unit_test: true,
+    },
+    edition: "2021",
+    features: [
+        "alloc",
+        "now",
+        "serde",
+        "std",
+    ],
+    rustlibs: [
+        "libbincode",
+        "libnum_traits",
+        "libserde",
+        "libserde_json",
+    ],
+    proc_macros: ["libserde_derive"],
+}
+
+rust_test {
+    name: "chrono_test_tests_dateutils",
+    host_supported: true,
+    crate_name: "dateutils",
+    cargo_env_compat: true,
+    cargo_pkg_version: "0.4.34",
+    srcs: ["tests/dateutils.rs"],
+    test_suites: ["general-tests"],
+    auto_gen_config: true,
+    test_options: {
+        unit_test: true,
+    },
+    edition: "2021",
+    features: [
+        "alloc",
+        "now",
+        "serde",
+        "std",
+    ],
+    rustlibs: [
+        "libbincode",
+        "libchrono",
+        "libnum_traits",
+        "libserde",
+        "libserde_json",
+    ],
+    proc_macros: ["libserde_derive"],
+}
+
+rust_test {
+    name: "chrono_test_tests_wasm",
+    host_supported: true,
+    crate_name: "wasm",
+    cargo_env_compat: true,
+    cargo_pkg_version: "0.4.34",
+    srcs: ["tests/wasm.rs"],
+    test_suites: ["general-tests"],
+    auto_gen_config: true,
+    test_options: {
+        unit_test: true,
+    },
+    edition: "2021",
+    features: [
+        "alloc",
+        "now",
+        "serde",
+        "std",
+    ],
+    rustlibs: [
+        "libbincode",
+        "libchrono",
+        "libnum_traits",
+        "libserde",
+        "libserde_json",
+    ],
+    proc_macros: ["libserde_derive"],
+}
+
+rust_test {
+    name: "chrono_test_tests_win_bindings",
+    host_supported: true,
+    crate_name: "win_bindings",
+    cargo_env_compat: true,
+    cargo_pkg_version: "0.4.34",
+    srcs: ["tests/win_bindings.rs"],
+    test_suites: ["general-tests"],
+    auto_gen_config: true,
+    test_options: {
+        unit_test: true,
+    },
+    edition: "2021",
+    features: [
+        "alloc",
+        "now",
+        "serde",
+        "std",
+    ],
+    rustlibs: [
+        "libbincode",
+        "libchrono",
+        "libnum_traits",
+        "libserde",
+        "libserde_json",
+    ],
+    proc_macros: ["libserde_derive"],
+}
+
 rust_library {
     name: "libchrono",
     host_supported: true,
diff --git a/cargo_embargo.json b/cargo_embargo.json
index cdd3408..cf61d0e 100644
--- a/cargo_embargo.json
+++ b/cargo_embargo.json
@@ -1,5 +1,6 @@
 {
   "apex_available": ["//apex_available:platform", "com.android.virt"],
   "features": ["now", "serde", "std"],
-  "run_cargo": false
+  "run_cargo": false,
+  "tests": true
 }