fork/rules_rust

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

UebelAndreUpdated rust-analyzer generator to use clap (#1471)8c9d5c70

0.8.1
5.1 KiB197 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 //tools/rust_analyzer/3rdparty:crates_vendor
7###############################################################################
8
9load(
10    "@bazel_skylib//lib:selects.bzl",
11    "selects",
12)
13
14# buildifier: disable=bzl-visibility
15load("@rules_rust//crate_universe/private:selects.bzl", "select_with_or")
16load(
17    "@rules_rust//rust:defs.bzl",
18    "rust_binary",
19    "rust_library",
20)
21
22package(default_visibility = ["//visibility:public"])
23
24# licenses([
25#     "TODO",  # MIT OR Apache-2.0
26# ])
27
28rust_library(
29    name = "clap",
30    srcs = glob(
31        include = [
32            "**/*.rs",
33        ],
34        exclude = [
35        ],
36    ),
37    aliases = selects.with_or({
38        "//conditions:default": {
39        },
40    }),
41    compile_data = glob(
42        include = ["**"],
43        exclude = [
44            "BUILD",
45            "BUILD.bazel",
46            "WORKSPACE",
47            "WORKSPACE.bazel",
48        ],
49    ) + select_with_or({
50        "//conditions:default": [
51        ],
52    }),
53    crate_features = [
54        "atty",
55        "clap_derive",
56        "color",
57        "default",
58        "derive",
59        "env",
60        "once_cell",
61        "std",
62        "strsim",
63        "suggestions",
64        "termcolor",
65    ],
66    crate_root = "src/lib.rs",
67    data = select_with_or({
68        "//conditions:default": [
69        ],
70    }),
71    edition = "2021",
72    proc_macro_deps = [
73    ] + select_with_or({
74        "//conditions:default": [
75            "@rules_rust_rust_analyzer__clap_derive-3.2.7//:clap_derive",
76        ],
77    }),
78    rustc_env = {
79    },
80    rustc_env_files = select_with_or({
81        "//conditions:default": [
82        ],
83    }),
84    rustc_flags = [
85        # In most cases, warnings in 3rd party crates are not interesting as
86        # they're out of the control of consumers. The flag here silences
87        # warnings. For more details see:
88        # https://doc.rust-lang.org/rustc/lints/levels.html
89        "--cap-lints=allow",
90    ],
91    tags = [
92        "cargo-bazel",
93        "manual",
94        "noclippy",
95        "norustfmt",
96    ],
97    version = "3.2.12",
98    deps = [
99    ] + select_with_or({
100        "//conditions:default": [
101            "@rules_rust_rust_analyzer__atty-0.2.14//:atty",
102            "@rules_rust_rust_analyzer__bitflags-1.3.2//:bitflags",
103            "@rules_rust_rust_analyzer__clap_lex-0.2.4//:clap_lex",
104            "@rules_rust_rust_analyzer__indexmap-1.9.1//:indexmap",
105            "@rules_rust_rust_analyzer__once_cell-1.13.0//:once_cell",
106            "@rules_rust_rust_analyzer__strsim-0.10.0//:strsim",
107            "@rules_rust_rust_analyzer__termcolor-1.1.3//:termcolor",
108            "@rules_rust_rust_analyzer__textwrap-0.15.0//:textwrap",
109        ],
110    }),
111)
112
113rust_binary(
114    name = "stdio-fixture__bin",
115    srcs = glob(
116        include = [
117            "**/*.rs",
118        ],
119        exclude = [
120        ],
121    ),
122    aliases = selects.with_or({
123        "//conditions:default": {
124        },
125    }),
126    compile_data = glob(
127        include = ["**"],
128        exclude = [
129            "BUILD",
130            "BUILD.bazel",
131            "WORKSPACE",
132            "WORKSPACE.bazel",
133        ],
134    ) + select_with_or({
135        "//conditions:default": [
136        ],
137    }),
138    crate_features = [
139        "atty",
140        "clap_derive",
141        "color",
142        "default",
143        "derive",
144        "env",
145        "once_cell",
146        "std",
147        "strsim",
148        "suggestions",
149        "termcolor",
150    ],
151    crate_root = "src/bin/stdio-fixture.rs",
152    data = select_with_or({
153        "//conditions:default": [
154        ],
155    }),
156    edition = "2021",
157    proc_macro_deps = [
158    ] + select_with_or({
159        "//conditions:default": [
160            "@rules_rust_rust_analyzer__clap_derive-3.2.7//:clap_derive",
161        ],
162    }),
163    rustc_env = {
164    },
165    rustc_env_files = select_with_or({
166        "//conditions:default": [
167        ],
168    }),
169    rustc_flags = [
170        # In most cases, warnings in 3rd party crates are not interesting as
171        # they're out of the control of consumers. The flag here silences
172        # warnings. For more details see:
173        # https://doc.rust-lang.org/rustc/lints/levels.html
174        "--cap-lints=allow",
175    ],
176    tags = [
177        "cargo-bazel",
178        "manual",
179        "noclippy",
180        "norustfmt",
181    ],
182    version = "3.2.12",
183    deps = [
184        ":clap",
185    ] + select_with_or({
186        "//conditions:default": [
187            "@rules_rust_rust_analyzer__atty-0.2.14//:atty",
188            "@rules_rust_rust_analyzer__bitflags-1.3.2//:bitflags",
189            "@rules_rust_rust_analyzer__clap_lex-0.2.4//:clap_lex",
190            "@rules_rust_rust_analyzer__indexmap-1.9.1//:indexmap",
191            "@rules_rust_rust_analyzer__once_cell-1.13.0//:once_cell",
192            "@rules_rust_rust_analyzer__strsim-0.10.0//:strsim",
193            "@rules_rust_rust_analyzer__termcolor-1.1.3//:termcolor",
194            "@rules_rust_rust_analyzer__textwrap-0.15.0//:textwrap",
195        ],
196    }),
197)