• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// This file is generated by cargo2android.py --run --device --tests --dependencies --global_defaults=crosvm_defaults --add_workspace.
2
3package {
4    // See: http://go/android-license-faq
5    // A large-scale-change added 'default_applicable_licenses' to import
6    // all of the 'license_kinds' from "external_crosvm_license"
7    // to get the below license kinds:
8    //   SPDX-license-identifier-BSD
9    default_applicable_licenses: ["external_crosvm_license"],
10}
11
12rust_defaults {
13    name: "cros_async_defaults",
14    defaults: ["crosvm_defaults"],
15    crate_name: "cros_async",
16    // has rustc warnings
17    srcs: ["src/lib.rs"],
18    test_suites: ["general-tests"],
19    auto_gen_config: true,
20    edition: "2018",
21    rustlibs: [
22        "libasync_task",
23        "libdata_model",
24        "libfutures",
25	"libfutures_executor",
26	"libfutures_util",
27	"libintrusive_collections",
28        "libio_uring",
29        "liblibc",
30        "libpin_utils",
31        "libslab",
32        "libsync_rust",
33        "libsys_util",
34        "libsyscall_defines",
35        "libtempfile",
36        "libthiserror",
37        "libvm_memory",
38    ],
39    proc_macros: [
40        "libasync_trait",
41        "libpaste",
42    ],
43}
44
45rust_test_host {
46    name: "cros_async_host_test_src_lib",
47    defaults: ["cros_async_defaults"],
48    test_options: {
49        unit_test: true,
50    },
51}
52
53rust_test {
54    name: "cros_async_device_test_src_lib",
55    defaults: ["cros_async_defaults"],
56}
57
58rust_library {
59    name: "libcros_async",
60    defaults: ["crosvm_defaults"],
61    // has rustc warnings
62    host_supported: true,
63    crate_name: "cros_async",
64    srcs: ["src/lib.rs"],
65    edition: "2018",
66    rustlibs: [
67        "libasync_task",
68        "libdata_model",
69        "libfutures",
70	"libintrusive_collections",  // added manually
71        "libio_uring",
72        "liblibc",
73        "libpin_utils",
74        "libslab",
75        "libsync_rust",
76        "libsys_util",
77        "libsyscall_defines",
78        "libthiserror",
79    ],
80    proc_macros: [
81        "libasync_trait",
82        "libpaste",
83    ],
84}
85
86// dependent_library ["feature_list"]
87//   ../assertions/src/lib.rs
88//   ../base/src/lib.rs
89//   ../data_model/src/lib.rs
90//   ../io_uring/src/lib.rs
91//   ../sync/src/lib.rs
92//   ../sys_util/poll_token_derive/poll_token_derive.rs
93//   ../sys_util/src/lib.rs
94//   ../syscall_defines/src/lib.rs
95//   ../tempfile/src/lib.rs
96//   ../vm_memory/src/lib.rs
97//   async-task-4.0.3 "default,std"
98//   async-trait-0.1.45
99//   futures-0.3.13 "alloc,async-await,default,executor,futures-executor,std"
100//   futures-channel-0.3.13 "alloc,futures-sink,sink,std"
101//   futures-core-0.3.13 "alloc,std"
102//   futures-executor-0.3.13 "std"
103//   futures-io-0.3.13 "std"
104//   futures-macro-0.3.13
105//   futures-sink-0.3.13 "alloc,std"
106//   futures-task-0.3.13 "alloc,std"
107//   futures-util-0.3.13 "alloc,async-await,async-await-macro,channel,futures-channel,futures-io,futures-macro,futures-sink,io,memchr,proc-macro-hack,proc-macro-nested,sink,slab,std"
108//   libc-0.2.87 "default,std"
109//   memchr-2.3.4 "default,std"
110//   paste-1.0.4
111//   pin-project-lite-0.2.6
112//   pin-utils-0.1.0
113//   proc-macro-hack-0.5.19
114//   proc-macro-nested-0.1.7
115//   proc-macro2-1.0.24 "default,proc-macro"
116//   quote-1.0.9 "default,proc-macro"
117//   serde-1.0.123 "default,derive,serde_derive,std"
118//   serde_derive-1.0.123 "default"
119//   slab-0.4.2
120//   syn-1.0.61 "clone-impls,default,derive,full,parsing,printing,proc-macro,quote,visit-mut"
121//   thiserror-1.0.24
122//   thiserror-impl-1.0.24
123//   unicode-xid-0.2.1 "default"
124