fork/rules_rust

git clone https://git.julia.blue/fork/rules_rust

David TolnayMake loads from @rules_rust//rust:defs.bzl come out on one line (#1753)a31490d9

rust-analyzer
1.6 KiB55 linesraw
1###############################################################################
2# @generated
3# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To
4# regenerate this file, run the following:
5#
6#     bazel run @//bindgen/3rdparty:crates_vendor
7###############################################################################
8
9load("@rules_rust//rust:defs.bzl", "rust_library")
10
11package(default_visibility = ["//visibility:public"])
12
13# licenses([
14#     "TODO",  # MIT
15# ])
16
17rust_library(
18    name = "which",
19    srcs = glob(["**/*.rs"]),
20    compile_data = glob(
21        include = ["**"],
22        exclude = [
23            "**/* *",
24            "BUILD",
25            "BUILD.bazel",
26            "WORKSPACE",
27            "WORKSPACE.bazel",
28        ],
29    ),
30    crate_root = "src/lib.rs",
31    edition = "2018",
32    rustc_flags = ["--cap-lints=allow"],
33    tags = [
34        "cargo-bazel",
35        "manual",
36        "noclippy",
37        "norustfmt",
38    ],
39    version = "4.3.0",
40    deps = [
41        "@rules_rust_bindgen__either-1.8.0//:either",
42        "@rules_rust_bindgen__libc-0.2.139//:libc",
43    ] + select({
44        "@rules_rust//rust/platform:aarch64-pc-windows-msvc": [
45            "@rules_rust_bindgen__once_cell-1.17.0//:once_cell",  # cfg(windows)
46        ],
47        "@rules_rust//rust/platform:i686-pc-windows-msvc": [
48            "@rules_rust_bindgen__once_cell-1.17.0//:once_cell",  # cfg(windows)
49        ],
50        "@rules_rust//rust/platform:x86_64-pc-windows-msvc": [
51            "@rules_rust_bindgen__once_cell-1.17.0//:once_cell",  # cfg(windows)
52        ],
53        "//conditions:default": [],
54    }),
55)