• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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: "libusb_util",
17    defaults: ["crosvm_defaults"],
18    host_supported: true,
19    crate_name: "usb_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        "libdata_model",
27        "liblibc",
28        "libstatic_assertions",
29        "libsync_rust",
30        "libthiserror",
31        "libusb_sys",
32        "libzerocopy",
33    ],
34    proc_macros: ["libremain"],
35    apex_available: ["com.android.virt"],
36}
37
38rust_test {
39    name: "usb_util_test_src_lib",
40    defaults: ["crosvm_defaults"],
41    host_supported: true,
42    crate_name: "usb_util",
43    cargo_env_compat: true,
44    cargo_pkg_version: "0.1.0",
45    crate_root: "src/lib.rs",
46    test_suites: ["general-tests"],
47    auto_gen_config: true,
48    test_options: {
49        unit_test: true,
50    },
51    edition: "2021",
52    rustlibs: [
53        "libbase_rust",
54        "libdata_model",
55        "liblibc",
56        "libstatic_assertions",
57        "libsync_rust",
58        "libthiserror",
59        "libusb_sys",
60        "libzerocopy",
61    ],
62    proc_macros: ["libremain"],
63}
64