fork/rules_rust

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

UebelAndreUpdated proto rules to fetch dependencies using crate_universe (#1491)83a03ab0

0.10.0
5.1 KiB226 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 //proto/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
26# ])
27
28rust_library(
29    name = "protobuf_codegen",
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    ],
55    crate_root = "src/lib.rs",
56    data = select_with_or({
57        "//conditions:default": [
58        ],
59    }),
60    edition = "2015",
61    proc_macro_deps = [
62    ] + select_with_or({
63        "//conditions:default": [
64        ],
65    }),
66    rustc_env = {
67    },
68    rustc_env_files = select_with_or({
69        "//conditions:default": [
70        ],
71    }),
72    rustc_flags = [
73        # In most cases, warnings in 3rd party crates are not interesting as
74        # they're out of the control of consumers. The flag here silences
75        # warnings. For more details see:
76        # https://doc.rust-lang.org/rustc/lints/levels.html
77        "--cap-lints=allow",
78    ],
79    tags = [
80        "cargo-bazel",
81        "manual",
82        "noclippy",
83        "norustfmt",
84    ],
85    version = "2.8.2",
86    deps = [
87    ] + select_with_or({
88        "//conditions:default": [
89            "@rules_rust_proto__protobuf-2.8.2//:protobuf",
90        ],
91    }),
92)
93
94rust_binary(
95    name = "protoc-gen-rust__bin",
96    srcs = glob(
97        include = [
98            "**/*.rs",
99        ],
100        exclude = [
101        ],
102    ),
103    aliases = selects.with_or({
104        "//conditions:default": {
105        },
106    }),
107    compile_data = glob(
108        include = ["**"],
109        exclude = [
110            "BUILD",
111            "BUILD.bazel",
112            "WORKSPACE",
113            "WORKSPACE.bazel",
114        ],
115    ) + select_with_or({
116        "//conditions:default": [
117        ],
118    }),
119    crate_features = [
120    ],
121    crate_root = "src/bin/protoc-gen-rust.rs",
122    data = select_with_or({
123        "//conditions:default": [
124        ],
125    }),
126    edition = "2015",
127    proc_macro_deps = [
128    ] + select_with_or({
129        "//conditions:default": [
130        ],
131    }),
132    rustc_env = {
133    },
134    rustc_env_files = select_with_or({
135        "//conditions:default": [
136        ],
137    }),
138    rustc_flags = [
139        # In most cases, warnings in 3rd party crates are not interesting as
140        # they're out of the control of consumers. The flag here silences
141        # warnings. For more details see:
142        # https://doc.rust-lang.org/rustc/lints/levels.html
143        "--cap-lints=allow",
144    ],
145    tags = [
146        "cargo-bazel",
147        "manual",
148        "noclippy",
149        "norustfmt",
150    ],
151    version = "2.8.2",
152    deps = [
153        ":protobuf_codegen",
154    ] + select_with_or({
155        "//conditions:default": [
156            "@rules_rust_proto__protobuf-2.8.2//:protobuf",
157        ],
158    }),
159)
160
161rust_binary(
162    name = "protobuf-bin-gen-rust-do-not-use__bin",
163    srcs = glob(
164        include = [
165            "**/*.rs",
166        ],
167        exclude = [
168        ],
169    ),
170    aliases = selects.with_or({
171        "//conditions:default": {
172        },
173    }),
174    compile_data = glob(
175        include = ["**"],
176        exclude = [
177            "BUILD",
178            "BUILD.bazel",
179            "WORKSPACE",
180            "WORKSPACE.bazel",
181        ],
182    ) + select_with_or({
183        "//conditions:default": [
184        ],
185    }),
186    crate_features = [
187    ],
188    crate_root = "src/bin/protobuf-bin-gen-rust-do-not-use.rs",
189    data = select_with_or({
190        "//conditions:default": [
191        ],
192    }),
193    edition = "2015",
194    proc_macro_deps = [
195    ] + select_with_or({
196        "//conditions:default": [
197        ],
198    }),
199    rustc_env = {
200    },
201    rustc_env_files = select_with_or({
202        "//conditions:default": [
203        ],
204    }),
205    rustc_flags = [
206        # In most cases, warnings in 3rd party crates are not interesting as
207        # they're out of the control of consumers. The flag here silences
208        # warnings. For more details see:
209        # https://doc.rust-lang.org/rustc/lints/levels.html
210        "--cap-lints=allow",
211    ],
212    tags = [
213        "cargo-bazel",
214        "manual",
215        "noclippy",
216        "norustfmt",
217    ],
218    version = "2.8.2",
219    deps = [
220        ":protobuf_codegen",
221    ] + select_with_or({
222        "//conditions:default": [
223            "@rules_rust_proto__protobuf-2.8.2//:protobuf",
224        ],
225    }),
226)