1// This file is generated by cargo_embargo.
2// Do not modify this file because the changes will be overridden on upgrade.
3
4package {
5    default_applicable_licenses: ["external_rust_crates_rusb_license"],
6    default_team: "trendy_team_android_rust",
7}
8
9license {
10    name: "external_rust_crates_rusb_license",
11    visibility: [":__subpackages__"],
12    license_kinds: ["SPDX-license-identifier-MIT"],
13    license_text: ["LICENSE"],
14}
15
16rust_library {
17    name: "librusb",
18    host_supported: true,
19    crate_name: "rusb",
20    cargo_env_compat: true,
21    cargo_pkg_version: "0.9.4",
22    crate_root: "src/lib.rs",
23    edition: "2018",
24    rustlibs: [
25        "liblibc",
26        "liblibusb1_sys",
27    ],
28    apex_available: [
29        "//apex_available:platform",
30        "//apex_available:anyapex",
31    ],
32    vendor_available: true,
33}
34
35rust_library {
36    name: "librusb_platform",
37    host_supported: true,
38    crate_name: "rusb",
39    cargo_env_compat: true,
40    cargo_pkg_version: "0.9.4",
41    crate_root: "src/lib.rs",
42    edition: "2018",
43    rustlibs: [
44        "liblibc",
45        "liblibusb1_sys_platform",
46    ],
47    apex_available: [
48        "//apex_available:platform",
49        "//apex_available:anyapex",
50    ],
51    vendor_available: true,
52    // The 'librusb_platform' rust_library should be depended upon only
53    // by programs running on Android at OS level (e.g. Android platform
54    // services). The reason is that it has a transitive dependency on
55    // "libusb_platform" and all programs using this library must have
56    // permission to access netlink sockets.,
57}
58