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