###############################################################################
# @generated
# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To
# regenerate this file, run the following:
#
#     bazel run //third_party/rust:crate_index
###############################################################################

load("@rules_rust//cargo:defs.bzl", "cargo_build_script")
load("@rules_rust//rust:defs.bzl", "rust_library")

package(default_visibility = ["//visibility:public"])

# licenses([
#     "TODO",  # MIT
# ])

rust_library(
    name = "libusb1_sys",
    srcs = glob(["**/*.rs"]),
    compile_data = glob(
        include = ["**"],
        exclude = [
            "**/* *",
            "BUILD",
            "BUILD.bazel",
            "WORKSPACE",
            "WORKSPACE.bazel",
        ],
    ),
    crate_root = "src/lib.rs",
    edition = "2018",
    rustc_flags = ["--cap-lints=allow"],
    tags = [
        "cargo-bazel",
        "crate-name=libusb1-sys",
        "manual",
        "noclippy",
        "norustfmt",
    ],
    version = "0.5.0",
    deps = [
        "@crate_index__libc-0.2.139//:libc",
        "@crate_index__libusb1-sys-0.5.0//:build_script_build",
    ],
)

cargo_build_script(
    name = "libusb1-sys_build_script",
    srcs = glob(["**/*.rs"]),
    crate_name = "build_script_build",
    crate_root = "build.rs",
    data = glob(
        include = ["**"],
        exclude = [
            "**/* *",
            "BUILD",
            "BUILD.bazel",
            "WORKSPACE",
            "WORKSPACE.bazel",
        ],
    ),
    edition = "2018",
    links = "usb-1.0",
    rustc_flags = [
        "--cap-lints=allow",
    ],
    tags = [
        "cargo-bazel",
        "crate-name=libusb1-sys",
        "manual",
        "noclippy",
        "norustfmt",
    ],
    version = "0.5.0",
    visibility = ["//visibility:private"],
    deps = [
        "@crate_index__cc-1.0.79//:cc",
        "@crate_index__pkg-config-0.3.26//:pkg_config",
    ] + select({
        "@rules_rust//rust/platform:aarch64-pc-windows-msvc": [
            "@crate_index__vcpkg-0.2.15//:vcpkg",  # cfg(target_env = "msvc")
        ],
        "@rules_rust//rust/platform:i686-pc-windows-msvc": [
            "@crate_index__vcpkg-0.2.15//:vcpkg",  # cfg(target_env = "msvc")
        ],
        "@rules_rust//rust/platform:x86_64-pc-windows-msvc": [
            "@crate_index__vcpkg-0.2.15//:vcpkg",  # cfg(target_env = "msvc")
        ],
        "//conditions:default": [],
    }),
)

alias(
    name = "build_script_build",
    actual = "libusb1-sys_build_script",
    tags = ["manual"],
)
