fork/rules_rust

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

UebelAndreexclude `BUILD` and `WORKSPACE` files from generated crate_universe targets (#1437)60f26d49

0.7.0
3.9 KiB164 linesraw
1###############################################################################
2# @generated
3# This file is auto-generated by the cargo-bazel tool.
4#
5# DO NOT MODIFY: Local changes may be replaced in future executions.
6###############################################################################
7
8load(
9    "@bazel_skylib//lib:selects.bzl",
10    "selects",
11)
12
13# buildifier: disable=bzl-visibility
14load("@rules_rust//crate_universe/private:selects.bzl", "select_with_or")
15load(
16    "@rules_rust//rust:defs.bzl",
17    "rust_binary",
18    "rust_library",
19)
20
21package(default_visibility = ["//visibility:public"])
22
23# licenses([
24#     "TODO",  # Apache-2.0 OR MIT
25# ])
26
27rust_library(
28    name = "cargo_lock",
29    srcs = glob(
30        include = [
31            "**/*.rs",
32        ],
33        exclude = [
34        ],
35    ),
36    aliases = selects.with_or({
37        "//conditions:default": {
38        },
39    }),
40    compile_data = glob(
41        include = ["**"],
42        exclude = [
43            "BUILD",
44            "BUILD.bazel",
45            "WORKSPACE",
46            "WORKSPACE.bazel",
47        ],
48    ) + select_with_or({
49        "//conditions:default": [
50        ],
51    }),
52    crate_features = [
53    ],
54    crate_root = "src/lib.rs",
55    data = select_with_or({
56        "//conditions:default": [
57        ],
58    }),
59    edition = "2021",
60    proc_macro_deps = [
61    ] + select_with_or({
62        "//conditions:default": [
63        ],
64    }),
65    rustc_env = {
66    },
67    rustc_env_files = select_with_or({
68        "//conditions:default": [
69        ],
70    }),
71    rustc_flags = [
72        # In most cases, warnings in 3rd party crates are not interesting as
73        # they're out of the control of consumers. The flag here silences
74        # warnings. For more details see:
75        # https://doc.rust-lang.org/rustc/lints/levels.html
76        "--cap-lints=allow",
77    ],
78    tags = [
79        "cargo-bazel",
80        "manual",
81        "noclippy",
82        "norustfmt",
83    ],
84    version = "8.0.2",
85    deps = [
86    ] + select_with_or({
87        "//conditions:default": [
88            "@crate_universe_crate_index__semver-1.0.12//:semver",
89            "@crate_universe_crate_index__serde-1.0.138//:serde",
90            "@crate_universe_crate_index__toml-0.5.9//:toml",
91            "@crate_universe_crate_index__url-2.2.2//:url",
92        ],
93    }),
94)
95
96rust_binary(
97    name = "cargo-lock__bin",
98    srcs = glob(
99        include = [
100            "**/*.rs",
101        ],
102        exclude = [
103        ],
104    ),
105    aliases = selects.with_or({
106        "//conditions:default": {
107        },
108    }),
109    compile_data = glob(
110        include = ["**"],
111        exclude = [
112            "BUILD",
113            "BUILD.bazel",
114            "WORKSPACE",
115            "WORKSPACE.bazel",
116        ],
117    ) + select_with_or({
118        "//conditions:default": [
119        ],
120    }),
121    crate_features = [
122    ],
123    crate_root = "src/bin/cargo-lock/main.rs",
124    data = select_with_or({
125        "//conditions:default": [
126        ],
127    }),
128    edition = "2021",
129    proc_macro_deps = [
130    ] + select_with_or({
131        "//conditions:default": [
132        ],
133    }),
134    rustc_env = {
135    },
136    rustc_env_files = select_with_or({
137        "//conditions:default": [
138        ],
139    }),
140    rustc_flags = [
141        # In most cases, warnings in 3rd party crates are not interesting as
142        # they're out of the control of consumers. The flag here silences
143        # warnings. For more details see:
144        # https://doc.rust-lang.org/rustc/lints/levels.html
145        "--cap-lints=allow",
146    ],
147    tags = [
148        "cargo-bazel",
149        "manual",
150        "noclippy",
151        "norustfmt",
152    ],
153    version = "8.0.2",
154    deps = [
155        ":cargo_lock",
156    ] + select_with_or({
157        "//conditions:default": [
158            "@crate_universe_crate_index__semver-1.0.12//:semver",
159            "@crate_universe_crate_index__serde-1.0.138//:serde",
160            "@crate_universe_crate_index__toml-0.5.9//:toml",
161            "@crate_universe_crate_index__url-2.2.2//:url",
162        ],
163    }),
164)