• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// This file is generated by cargo2android.py --config cargo2android.json.
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    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        "libcros_async",
25        "libdata_model",
26        "liblibc",
27        "libnet_sys",
28        "libthiserror",
29    ],
30    proc_macros: ["libremain"],
31}
32
33rust_test {
34    name: "net_util_test_src_lib",
35    defaults: ["crosvm_defaults"],
36    host_supported: true,
37    crate_name: "net_util",
38    cargo_env_compat: true,
39    cargo_pkg_version: "0.1.0",
40    srcs: ["src/lib.rs"],
41    test_suites: ["general-tests"],
42    auto_gen_config: true,
43    test_options: {
44        unit_test: false,
45    },
46    edition: "2021",
47    rustlibs: [
48        "libbase_rust",
49        "libcros_async",
50        "libdata_model",
51        "liblibc",
52        "libnet_sys",
53        "libthiserror",
54    ],
55    proc_macros: ["libremain"],
56}
57