fork/rules_rust

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

Daniel Wagner-HallUse env method recently added to cargo_metadata (#1813)78ca9ba0

rust-analyzer
2.0 KiB89 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 @//crate_universe/3rdparty:crates_vendor
7###############################################################################
8
9load("@rules_rust//cargo:defs.bzl", "cargo_build_script")
10load("@rules_rust//rust:defs.bzl", "rust_library")
11
12package(default_visibility = ["//visibility:public"])
13
14# licenses([
15#     "TODO",  # MIT OR Apache-2.0
16# ])
17
18rust_library(
19    name = "anyhow",
20    srcs = glob(["**/*.rs"]),
21    compile_data = glob(
22        include = ["**"],
23        exclude = [
24            "**/* *",
25            "BUILD",
26            "BUILD.bazel",
27            "WORKSPACE",
28            "WORKSPACE.bazel",
29        ],
30    ),
31    crate_features = [
32        "default",
33        "std",
34    ],
35    crate_root = "src/lib.rs",
36    edition = "2018",
37    rustc_flags = ["--cap-lints=allow"],
38    tags = [
39        "cargo-bazel",
40        "crate-name=anyhow",
41        "manual",
42        "noclippy",
43        "norustfmt",
44    ],
45    version = "1.0.68",
46    deps = [
47        "@cui__anyhow-1.0.68//:build_script_build",
48    ],
49)
50
51cargo_build_script(
52    name = "anyhow_build_script",
53    srcs = glob(["**/*.rs"]),
54    crate_features = [
55        "default",
56        "std",
57    ],
58    crate_name = "build_script_build",
59    crate_root = "build.rs",
60    data = glob(
61        include = ["**"],
62        exclude = [
63            "**/* *",
64            "BUILD",
65            "BUILD.bazel",
66            "WORKSPACE",
67            "WORKSPACE.bazel",
68        ],
69    ),
70    edition = "2018",
71    rustc_flags = [
72        "--cap-lints=allow",
73    ],
74    tags = [
75        "cargo-bazel",
76        "crate-name=anyhow",
77        "manual",
78        "noclippy",
79        "norustfmt",
80    ],
81    version = "1.0.68",
82    visibility = ["//visibility:private"],
83)
84
85alias(
86    name = "build_script_build",
87    actual = "anyhow_build_script",
88    tags = ["manual"],
89)