diff options
-rw-r--r-- | Android.bp | 118 | ||||
-rw-r--r-- | cargo_embargo.json | 3 |
2 files changed, 119 insertions, 2 deletions
@@ -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 @@ license { ], } +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 } |