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
5.1 KiB196 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",  # MIT OR Apache-2.0
25# ])
26
27rust_library(
28    name = "clap",
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        "atty",
54        "clap_derive",
55        "color",
56        "default",
57        "derive",
58        "env",
59        "once_cell",
60        "std",
61        "strsim",
62        "suggestions",
63        "termcolor",
64    ],
65    crate_root = "src/lib.rs",
66    data = select_with_or({
67        "//conditions:default": [
68        ],
69    }),
70    edition = "2021",
71    proc_macro_deps = [
72    ] + select_with_or({
73        "//conditions:default": [
74            "@crate_universe_crate_index__clap_derive-3.2.7//:clap_derive",
75        ],
76    }),
77    rustc_env = {
78    },
79    rustc_env_files = select_with_or({
80        "//conditions:default": [
81        ],
82    }),
83    rustc_flags = [
84        # In most cases, warnings in 3rd party crates are not interesting as
85        # they're out of the control of consumers. The flag here silences
86        # warnings. For more details see:
87        # https://doc.rust-lang.org/rustc/lints/levels.html
88        "--cap-lints=allow",
89    ],
90    tags = [
91        "cargo-bazel",
92        "manual",
93        "noclippy",
94        "norustfmt",
95    ],
96    version = "3.2.8",
97    deps = [
98    ] + select_with_or({
99        "//conditions:default": [
100            "@crate_universe_crate_index__atty-0.2.14//:atty",
101            "@crate_universe_crate_index__bitflags-1.3.2//:bitflags",
102            "@crate_universe_crate_index__clap_lex-0.2.4//:clap_lex",
103            "@crate_universe_crate_index__indexmap-1.9.1//:indexmap",
104            "@crate_universe_crate_index__once_cell-1.13.0//:once_cell",
105            "@crate_universe_crate_index__strsim-0.10.0//:strsim",
106            "@crate_universe_crate_index__termcolor-1.1.3//:termcolor",
107            "@crate_universe_crate_index__textwrap-0.15.0//:textwrap",
108        ],
109    }),
110)
111
112rust_binary(
113    name = "stdio-fixture__bin",
114    srcs = glob(
115        include = [
116            "**/*.rs",
117        ],
118        exclude = [
119        ],
120    ),
121    aliases = selects.with_or({
122        "//conditions:default": {
123        },
124    }),
125    compile_data = glob(
126        include = ["**"],
127        exclude = [
128            "BUILD",
129            "BUILD.bazel",
130            "WORKSPACE",
131            "WORKSPACE.bazel",
132        ],
133    ) + select_with_or({
134        "//conditions:default": [
135        ],
136    }),
137    crate_features = [
138        "atty",
139        "clap_derive",
140        "color",
141        "default",
142        "derive",
143        "env",
144        "once_cell",
145        "std",
146        "strsim",
147        "suggestions",
148        "termcolor",
149    ],
150    crate_root = "src/bin/stdio-fixture.rs",
151    data = select_with_or({
152        "//conditions:default": [
153        ],
154    }),
155    edition = "2021",
156    proc_macro_deps = [
157    ] + select_with_or({
158        "//conditions:default": [
159            "@crate_universe_crate_index__clap_derive-3.2.7//:clap_derive",
160        ],
161    }),
162    rustc_env = {
163    },
164    rustc_env_files = select_with_or({
165        "//conditions:default": [
166        ],
167    }),
168    rustc_flags = [
169        # In most cases, warnings in 3rd party crates are not interesting as
170        # they're out of the control of consumers. The flag here silences
171        # warnings. For more details see:
172        # https://doc.rust-lang.org/rustc/lints/levels.html
173        "--cap-lints=allow",
174    ],
175    tags = [
176        "cargo-bazel",
177        "manual",
178        "noclippy",
179        "norustfmt",
180    ],
181    version = "3.2.8",
182    deps = [
183        ":clap",
184    ] + select_with_or({
185        "//conditions:default": [
186            "@crate_universe_crate_index__atty-0.2.14//:atty",
187            "@crate_universe_crate_index__bitflags-1.3.2//:bitflags",
188            "@crate_universe_crate_index__clap_lex-0.2.4//:clap_lex",
189            "@crate_universe_crate_index__indexmap-1.9.1//:indexmap",
190            "@crate_universe_crate_index__once_cell-1.13.0//:once_cell",
191            "@crate_universe_crate_index__strsim-0.10.0//:strsim",
192            "@crate_universe_crate_index__termcolor-1.1.3//:termcolor",
193            "@crate_universe_crate_index__textwrap-0.15.0//:textwrap",
194        ],
195    }),
196)