aboutsummaryrefslogtreecommitdiff
path: root/Android.bp
diff options
context:
space:
mode:
Diffstat (limited to 'Android.bp')
-rw-r--r--Android.bp55
1 files changed, 39 insertions, 16 deletions
diff --git a/Android.bp b/Android.bp
index e6b89ff..0a3003e 100644
--- a/Android.bp
+++ b/Android.bp
@@ -1,4 +1,4 @@
-// This file is generated by cargo2android.py --config cargo2android.json.
+// This file is generated by cargo_embargo.
// Do not modify this file as changes will be overridden on upgrade.
package {
@@ -41,13 +41,18 @@ rust_library {
vendor_available: true,
}
-rust_defaults {
- name: "tokio-test_test_defaults",
- crate_name: "tokio_test",
+rust_test {
+ name: "tokio-test_test_tests_block_on",
+ host_supported: true,
+ crate_name: "block_on",
cargo_env_compat: true,
cargo_pkg_version: "0.4.2",
+ srcs: ["tests/block_on.rs"],
test_suites: ["general-tests"],
auto_gen_config: true,
+ test_options: {
+ unit_test: true,
+ },
edition: "2018",
rustlibs: [
"libasync_stream",
@@ -61,31 +66,49 @@ rust_defaults {
}
rust_test {
- name: "tokio-test_test_tests_block_on",
- defaults: ["tokio-test_test_defaults"],
- host_supported: true,
- srcs: ["tests/block_on.rs"],
- test_options: {
- unit_test: true,
- },
-}
-
-rust_test {
name: "tokio-test_test_tests_io",
- defaults: ["tokio-test_test_defaults"],
host_supported: true,
+ crate_name: "io",
+ cargo_env_compat: true,
+ cargo_pkg_version: "0.4.2",
srcs: ["tests/io.rs"],
+ test_suites: ["general-tests"],
+ auto_gen_config: true,
test_options: {
unit_test: true,
},
+ edition: "2018",
+ rustlibs: [
+ "libasync_stream",
+ "libbytes",
+ "libfutures_core",
+ "libfutures_util",
+ "libtokio",
+ "libtokio_stream",
+ "libtokio_test",
+ ],
}
rust_test {
name: "tokio-test_test_tests_macros",
- defaults: ["tokio-test_test_defaults"],
host_supported: true,
+ crate_name: "macros",
+ cargo_env_compat: true,
+ cargo_pkg_version: "0.4.2",
srcs: ["tests/macros.rs"],
+ test_suites: ["general-tests"],
+ auto_gen_config: true,
test_options: {
unit_test: true,
},
+ edition: "2018",
+ rustlibs: [
+ "libasync_stream",
+ "libbytes",
+ "libfutures_core",
+ "libfutures_util",
+ "libtokio",
+ "libtokio_stream",
+ "libtokio_test",
+ ],
}