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: "libnet_util",
15    defaults: ["crosvm_defaults"],
16    host_supported: true,
17    crate_name: "net_util",
18    srcs: ["src/lib.rs"],
19    edition: "2018",
20    rustlibs: [
21        "libbase_rust",
22        "libdata_model",
23        "liblibc",
24        "libnet_sys",
25    ],
26}
27
28rust_defaults {
29    name: "net_util_defaults",
30    defaults: ["crosvm_defaults"],
31    crate_name: "net_util",
32    srcs: ["src/lib.rs"],
33    test_suites: ["general-tests"],
34    auto_gen_config: true,
35    edition: "2018",
36    rustlibs: [
37        "libbase_rust",
38        "libdata_model",
39        "liblibc",
40        "libnet_sys",
41    ],
42}
43
44rust_test_host {
45    name: "net_util_host_test_src_lib",
46    defaults: ["net_util_defaults"],
47    test_options: {
48        unit_test: true,
49    },
50}
51
52rust_test {
53    name: "net_util_device_test_src_lib",
54    defaults: ["net_util_defaults"],
55}
56
57// dependent_library ["feature_list"]
58//   ../assertions/src/lib.rs
59//   ../base/src/lib.rs
60//   ../cros_async/src/lib.rs
61//   ../data_model/src/lib.rs
62//   ../io_uring/src/lib.rs
63//   ../net_sys/src/lib.rs
64//   ../sync/src/lib.rs
65//   ../sys_util/poll_token_derive/poll_token_derive.rs
66//   ../sys_util/src/lib.rs
67//   ../tempfile/src/lib.rs
68//   async-task-4.0.3 "default,std"
69//   async-trait-0.1.50
70//   autocfg-1.0.1
71//   futures-0.3.14 "alloc"
72//   futures-channel-0.3.14 "alloc,futures-sink,sink"
73//   futures-core-0.3.14 "alloc"
74//   futures-io-0.3.14
75//   futures-sink-0.3.14 "alloc"
76//   futures-task-0.3.14 "alloc"
77//   futures-util-0.3.14 "alloc,futures-sink,sink"
78//   intrusive-collections-0.9.0 "alloc,default"
79//   itoa-0.4.7
80//   libc-0.2.93 "default,std"
81//   memoffset-0.5.6 "default"
82//   paste-1.0.5
83//   pin-project-lite-0.2.6
84//   pin-utils-0.1.0
85//   proc-macro2-1.0.26 "default,proc-macro"
86//   quote-1.0.9 "default,proc-macro"
87//   ryu-1.0.5
88//   serde-1.0.125 "default,derive,serde_derive,std"
89//   serde_derive-1.0.125 "default"
90//   serde_json-1.0.64 "default,std"
91//   slab-0.4.3 "default,std"
92//   smallvec-1.6.1
93//   syn-1.0.70 "clone-impls,default,derive,full,parsing,printing,proc-macro,quote,visit-mut"
94//   thiserror-1.0.24
95//   thiserror-impl-1.0.24
96//   unicode-xid-0.2.1 "default"
97