xref: /aosp_15_r20/external/crosvm/cros_async/Android.bp (revision bb4ee6a4ae7042d18b07a98463b9c8b875e44b39)
1// This file is generated by cargo_embargo.
2// Do not modify this file after the first "rust_*" or "genrule" module
3// because the changes will be overridden on upgrade.
4// Content before the first "rust_*" or "genrule" module is preserved.
5
6package {
7    // See: http://go/android-license-faq
8    // A large-scale-change added 'default_applicable_licenses' to import
9    // all of the 'license_kinds' from "external_crosvm_license"
10    // to get the below license kinds:
11    //   SPDX-license-identifier-BSD
12    default_applicable_licenses: ["external_crosvm_license"],
13}
14
15rust_test {
16    name: "cros_async_test_src_lib",
17    defaults: ["crosvm_inner_defaults"],
18    host_supported: true,
19    crate_name: "cros_async",
20    cargo_env_compat: true,
21    cargo_pkg_version: "0.1.1",
22    crate_root: "src/lib.rs",
23    test_suites: ["general-tests"],
24    auto_gen_config: true,
25    test_options: {
26        unit_test: false,
27    },
28    edition: "2021",
29    rustlibs: [
30        "libanyhow",
31        "libasync_task",
32        "libaudio_streams",
33        "libbase_rust",
34        "libcfg_if",
35        "libfutures",
36        "libfutures_executor",
37        "libfutures_util",
38        "libintrusive_collections",
39        "libio_uring",
40        "liblibc",
41        "libonce_cell",
42        "libpin_utils",
43        "libserde",
44        "libserde_keyvalue",
45        "libslab",
46        "libstatic_assertions",
47        "libsync_rust",
48        "libtempfile",
49        "libthiserror",
50    ],
51    proc_macros: [
52        "libasync_trait",
53        "libpaste",
54        "libremain",
55    ],
56}
57
58rust_test {
59    name: "cros_async_test_tests_executor",
60    defaults: ["crosvm_inner_defaults"],
61    host_supported: true,
62    crate_name: "executor",
63    cargo_env_compat: true,
64    cargo_pkg_version: "0.1.1",
65    crate_root: "tests/executor.rs",
66    test_suites: ["general-tests"],
67    auto_gen_config: true,
68    test_options: {
69        unit_test: false,
70    },
71    edition: "2021",
72    rustlibs: [
73        "libanyhow",
74        "libasync_task",
75        "libaudio_streams",
76        "libbase_rust",
77        "libcfg_if",
78        "libcros_async",
79        "libfutures",
80        "libfutures_executor",
81        "libfutures_util",
82        "libintrusive_collections",
83        "libio_uring",
84        "liblibc",
85        "libonce_cell",
86        "libpin_utils",
87        "libserde",
88        "libserde_keyvalue",
89        "libslab",
90        "libstatic_assertions",
91        "libsync_rust",
92        "libtempfile",
93        "libthiserror",
94    ],
95    proc_macros: [
96        "libasync_trait",
97        "libpaste",
98        "libremain",
99    ],
100}
101
102rust_library {
103    name: "libcros_async",
104    defaults: ["crosvm_inner_defaults"],
105    host_supported: true,
106    crate_name: "cros_async",
107    cargo_env_compat: true,
108    cargo_pkg_version: "0.1.1",
109    crate_root: "src/lib.rs",
110    edition: "2021",
111    rustlibs: [
112        "libanyhow",
113        "libasync_task",
114        "libaudio_streams",
115        "libbase_rust",
116        "libcfg_if",
117        "libfutures",
118        "libintrusive_collections",
119        "libio_uring",
120        "liblibc",
121        "libonce_cell",
122        "libpin_utils",
123        "libserde",
124        "libserde_keyvalue",
125        "libslab",
126        "libstatic_assertions",
127        "libsync_rust",
128        "libthiserror",
129    ],
130    proc_macros: [
131        "libasync_trait",
132        "libpaste",
133        "libremain",
134    ],
135}
136