| ############################################################################### |
| # @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"], |
| ) |