• 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// Do not modify this file as changes will be overridden on upgrade.
3
4package {
5    // See: http://go/android-license-faq
6    // A large-scale-change added 'default_applicable_licenses' to import
7    // all of the 'license_kinds' from "external_crosvm_license"
8    // to get the below license kinds:
9    //   SPDX-license-identifier-BSD
10    default_applicable_licenses: ["external_crosvm_license"],
11}
12
13rust_library {
14    name: "libvhost",
15    defaults: ["crosvm_defaults"],
16    host_supported: true,
17    crate_name: "vhost",
18    srcs: ["src/lib.rs"],
19    edition: "2018",
20    rustlibs: [
21        "libassertions",
22        "libbase_rust",
23        "liblibc",
24        "libnet_util",
25        "libvirtio_sys",
26        "libvm_memory",
27    ],
28}
29
30rust_defaults {
31    name: "vhost_defaults",
32    defaults: ["crosvm_defaults"],
33    crate_name: "vhost",
34    srcs: ["src/lib.rs"],
35    test_suites: ["general-tests"],
36    auto_gen_config: true,
37    edition: "2018",
38    rustlibs: [
39        "libassertions",
40        "libbase_rust",
41        "liblibc",
42        "libnet_util",
43        "libvirtio_sys",
44        "libvm_memory",
45    ],
46}
47
48rust_test_host {
49    name: "vhost_host_test_src_lib",
50    defaults: ["vhost_defaults"],
51    test_options: {
52        unit_test: true,
53    },
54}
55
56rust_test {
57    name: "vhost_device_test_src_lib",
58    defaults: ["vhost_defaults"],
59}
60
61// dependent_library ["feature_list"]
62//   ../assertions/src/lib.rs
63//   ../base/src/lib.rs
64//   ../cros_async/src/lib.rs
65//   ../data_model/src/lib.rs
66//   ../io_uring/src/lib.rs
67//   ../net_sys/src/lib.rs
68//   ../net_util/src/lib.rs
69//   ../sync/src/lib.rs
70//   ../sys_util/poll_token_derive/poll_token_derive.rs
71//   ../sys_util/src/lib.rs
72//   ../tempfile/src/lib.rs
73//   ../virtio_sys/src/lib.rs
74//   ../vm_memory/src/lib.rs
75//   async-task-4.0.3 "default,std"
76//   async-trait-0.1.50
77//   autocfg-1.0.1
78//   bitflags-1.2.1 "default"
79//   futures-0.3.14 "alloc"
80//   futures-channel-0.3.14 "alloc,futures-sink,sink"
81//   futures-core-0.3.14 "alloc"
82//   futures-io-0.3.14
83//   futures-sink-0.3.14 "alloc"
84//   futures-task-0.3.14 "alloc"
85//   futures-util-0.3.14 "alloc,futures-sink,sink"
86//   intrusive-collections-0.9.0 "alloc,default"
87//   itoa-0.4.7
88//   libc-0.2.93 "default,std"
89//   memoffset-0.5.6 "default"
90//   paste-1.0.5
91//   pin-project-lite-0.2.6
92//   pin-utils-0.1.0
93//   proc-macro2-1.0.26 "default,proc-macro"
94//   quote-1.0.9 "default,proc-macro"
95//   ryu-1.0.5
96//   serde-1.0.125 "default,derive,serde_derive,std"
97//   serde_derive-1.0.125 "default"
98//   serde_json-1.0.64 "default,std"
99//   slab-0.4.3 "default,std"
100//   smallvec-1.6.1
101//   syn-1.0.70 "clone-impls,default,derive,full,parsing,printing,proc-macro,quote,visit-mut"
102//   thiserror-1.0.24
103//   thiserror-impl-1.0.24
104//   unicode-xid-0.2.1 "default"
105