xref: /aosp_15_r20/external/crosvm/net_util/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_library {
16    name: "libnet_util",
17    defaults: ["crosvm_inner_defaults"],
18    host_supported: true,
19    crate_name: "net_util",
20    cargo_env_compat: true,
21    cargo_pkg_version: "0.1.0",
22    crate_root: "src/lib.rs",
23    edition: "2021",
24    rustlibs: [
25        "libbase_rust",
26        "libcfg_if",
27        "libcros_async",
28        "liblibc",
29        "libnet_sys",
30        "libserde",
31        "libsmallvec",
32        "libthiserror",
33        "libvirtio_sys",
34        "libzerocopy",
35    ],
36    proc_macros: ["libremain"],
37}
38
39rust_test {
40    name: "net_util_test_src_lib",
41    defaults: ["crosvm_inner_defaults"],
42    host_supported: true,
43    crate_name: "net_util",
44    cargo_env_compat: true,
45    cargo_pkg_version: "0.1.0",
46    crate_root: "src/lib.rs",
47    test_suites: ["general-tests"],
48    auto_gen_config: true,
49    test_options: {
50        unit_test: false,
51    },
52    edition: "2021",
53    rustlibs: [
54        "libbase_rust",
55        "libcfg_if",
56        "libcros_async",
57        "liblibc",
58        "libnet_sys",
59        "libserde",
60        "libserde_json",
61        "libsmallvec",
62        "libthiserror",
63        "libvirtio_sys",
64        "libzerocopy",
65    ],
66    proc_macros: ["libremain"],
67}
68
69rust_test {
70    name: "net_util_test_tests_unix_tap",
71    defaults: ["crosvm_inner_defaults"],
72    host_supported: true,
73    crate_name: "unix_tap",
74    cargo_env_compat: true,
75    cargo_pkg_version: "0.1.0",
76    crate_root: "tests/unix_tap.rs",
77    test_suites: ["general-tests"],
78    auto_gen_config: true,
79    test_options: {
80        unit_test: false,
81    },
82    edition: "2021",
83    rustlibs: [
84        "libbase_rust",
85        "libcfg_if",
86        "libcros_async",
87        "liblibc",
88        "libnet_sys",
89        "libnet_util",
90        "libserde",
91        "libserde_json",
92        "libsmallvec",
93        "libthiserror",
94        "libvirtio_sys",
95        "libzerocopy",
96    ],
97    proc_macros: ["libremain"],
98}
99