fork/rules_rust

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

UebelAndreUpdated bindgen version (#1470)25baabc2

0.8.0
7.9 KiB296 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 //bindgen/3rdparty:crates_vendor
7###############################################################################
8
9load(
10    "@bazel_skylib//lib:selects.bzl",
11    "selects",
12)
13load(
14    "@rules_rust//cargo:defs.bzl",
15    "cargo_build_script",
16)
17
18# buildifier: disable=bzl-visibility
19load("@rules_rust//crate_universe/private:selects.bzl", "select_with_or")
20load(
21    "@rules_rust//rust:defs.bzl",
22    "rust_binary",
23    "rust_library",
24)
25
26package(default_visibility = ["//visibility:public"])
27
28# licenses([
29#     "TODO",  # BSD-3-Clause
30# ])
31
32rust_library(
33    name = "bindgen",
34    srcs = glob(
35        include = [
36            "**/*.rs",
37        ],
38        exclude = [
39        ],
40    ),
41    aliases = selects.with_or({
42        "//conditions:default": {
43        },
44    }),
45    compile_data = glob(
46        include = ["**"],
47        exclude = [
48            "BUILD",
49            "BUILD.bazel",
50            "WORKSPACE",
51            "WORKSPACE.bazel",
52        ],
53    ) + select_with_or({
54        "//conditions:default": [
55        ],
56    }),
57    crate_features = [
58        "clap",
59        "default",
60        "env_logger",
61        "log",
62        "logging",
63        "runtime",
64        "which",
65        "which-rustfmt",
66    ],
67    crate_root = "src/lib.rs",
68    data = select_with_or({
69        "//conditions:default": [
70        ],
71    }),
72    edition = "2018",
73    proc_macro_deps = [
74    ] + select_with_or({
75        "//conditions:default": [
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 = "0.60.1",
98    deps = [
99    ] + select_with_or({
100        "//conditions:default": [
101            "@rules_rust_bindgen__bindgen-0.60.1//:build_script_build",
102            "@rules_rust_bindgen__bitflags-1.3.2//:bitflags",
103            "@rules_rust_bindgen__cexpr-0.6.0//:cexpr",
104            "@rules_rust_bindgen__clang-sys-1.3.3//:clang_sys",
105            "@rules_rust_bindgen__clap-3.2.12//:clap",
106            "@rules_rust_bindgen__env_logger-0.9.0//:env_logger",
107            "@rules_rust_bindgen__lazy_static-1.4.0//:lazy_static",
108            "@rules_rust_bindgen__lazycell-1.3.0//:lazycell",
109            "@rules_rust_bindgen__log-0.4.17//:log",
110            "@rules_rust_bindgen__peeking_take_while-0.1.2//:peeking_take_while",
111            "@rules_rust_bindgen__proc-macro2-1.0.40//:proc_macro2",
112            "@rules_rust_bindgen__quote-1.0.20//:quote",
113            "@rules_rust_bindgen__regex-1.6.0//:regex",
114            "@rules_rust_bindgen__rustc-hash-1.1.0//:rustc_hash",
115            "@rules_rust_bindgen__shlex-1.1.0//:shlex",
116            "@rules_rust_bindgen__which-4.2.5//:which",
117        ],
118    }),
119)
120
121rust_binary(
122    name = "bindgen__bin",
123    srcs = glob(
124        include = [
125            "**/*.rs",
126        ],
127        exclude = [
128        ],
129    ),
130    aliases = selects.with_or({
131        "//conditions:default": {
132        },
133    }),
134    compile_data = glob(
135        include = ["**"],
136        exclude = [
137            "BUILD",
138            "BUILD.bazel",
139            "WORKSPACE",
140            "WORKSPACE.bazel",
141        ],
142    ) + select_with_or({
143        "//conditions:default": [
144        ],
145    }),
146    crate_features = [
147        "clap",
148        "default",
149        "env_logger",
150        "log",
151        "logging",
152        "runtime",
153        "which",
154        "which-rustfmt",
155    ],
156    crate_root = "src/main.rs",
157    data = select_with_or({
158        "//conditions:default": [
159        ],
160    }),
161    edition = "2018",
162    proc_macro_deps = [
163    ] + select_with_or({
164        "//conditions:default": [
165        ],
166    }),
167    rustc_env = {
168    },
169    rustc_env_files = select_with_or({
170        "//conditions:default": [
171        ],
172    }),
173    rustc_flags = [
174        # In most cases, warnings in 3rd party crates are not interesting as
175        # they're out of the control of consumers. The flag here silences
176        # warnings. For more details see:
177        # https://doc.rust-lang.org/rustc/lints/levels.html
178        "--cap-lints=allow",
179    ],
180    tags = [
181        "cargo-bazel",
182        "manual",
183        "noclippy",
184        "norustfmt",
185    ],
186    version = "0.60.1",
187    deps = [
188        ":bindgen",
189    ] + select_with_or({
190        "//conditions:default": [
191            "@rules_rust_bindgen__bindgen-0.60.1//:build_script_build",
192            "@rules_rust_bindgen__bitflags-1.3.2//:bitflags",
193            "@rules_rust_bindgen__cexpr-0.6.0//:cexpr",
194            "@rules_rust_bindgen__clang-sys-1.3.3//:clang_sys",
195            "@rules_rust_bindgen__clap-3.2.12//:clap",
196            "@rules_rust_bindgen__env_logger-0.9.0//:env_logger",
197            "@rules_rust_bindgen__lazy_static-1.4.0//:lazy_static",
198            "@rules_rust_bindgen__lazycell-1.3.0//:lazycell",
199            "@rules_rust_bindgen__log-0.4.17//:log",
200            "@rules_rust_bindgen__peeking_take_while-0.1.2//:peeking_take_while",
201            "@rules_rust_bindgen__proc-macro2-1.0.40//:proc_macro2",
202            "@rules_rust_bindgen__quote-1.0.20//:quote",
203            "@rules_rust_bindgen__regex-1.6.0//:regex",
204            "@rules_rust_bindgen__rustc-hash-1.1.0//:rustc_hash",
205            "@rules_rust_bindgen__shlex-1.1.0//:shlex",
206            "@rules_rust_bindgen__which-4.2.5//:which",
207        ],
208    }),
209)
210
211cargo_build_script(
212    # See comment associated with alias. Do not change this name
213    name = "bindgen_build_script",
214    srcs = glob(
215        include = [
216            "**/*.rs",
217        ],
218        exclude = [
219        ],
220    ),
221    aliases = selects.with_or({
222        "//conditions:default": {
223        },
224    }),
225    build_script_env = {
226    },
227    compile_data = select_with_or({
228        "//conditions:default": [
229        ],
230    }),
231    crate_features = [
232        "clap",
233        "default",
234        "env_logger",
235        "log",
236        "logging",
237        "runtime",
238        "which",
239        "which-rustfmt",
240    ],
241    crate_name = "build_script_build",
242    crate_root = "build.rs",
243    data = glob(["**"]) + select_with_or({
244        "//conditions:default": [
245        ],
246    }),
247    edition = "2018",
248    proc_macro_deps = [
249    ] + select_with_or({
250        "//conditions:default": [
251        ],
252    }),
253    rustc_env = {
254    },
255    rustc_env_files = select_with_or({
256        "//conditions:default": [
257        ],
258    }),
259    rustc_flags = [
260        # In most cases, warnings in 3rd party crates are not interesting as
261        # they're out of the control of consumers. The flag here silences
262        # warnings. For more details see:
263        # https://doc.rust-lang.org/rustc/lints/levels.html
264        "--cap-lints=allow",
265    ],
266    tags = [
267        "cargo-bazel",
268        "manual",
269        "noclippy",
270        "norustfmt",
271    ],
272    tools = select_with_or({
273        "//conditions:default": [
274        ],
275    }),
276    version = "0.60.1",
277    visibility = ["//visibility:private"],
278    deps = [
279    ] + select_with_or({
280        "//conditions:default": [
281        ],
282    }),
283)
284
285alias(
286    # Because `cargo_build_script` does some invisible target name mutating to
287    # determine the package and crate name for a build script, the Bazel
288    # target namename of any build script cannot be the Cargo canonical name
289    # of `build_script_build` without losing out on having certain Cargo
290    # environment variables set.
291    name = "build_script_build",
292    actual = "bindgen_build_script",
293    tags = [
294        "manual",
295    ],
296)