blob: a7ef8594ed906f1af0815014706398a5e45452d0 [file] [log] [blame]
Brian Silverman5f6f2762022-08-13 19:30:05 -07001###############################################################################
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"""
9# `crates_repository` API
10
11- [aliases](#aliases)
12- [crate_deps](#crate_deps)
13- [all_crate_deps](#all_crate_deps)
14- [crate_repositories](#crate_repositories)
15
16"""
17
18load("@bazel_skylib//lib:selects.bzl", "selects")
19load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
20load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe")
21
22###############################################################################
23# MACROS API
24###############################################################################
25
26# An identifier that represent common dependencies (unconditional).
27_COMMON_CONDITION = ""
28
29def _flatten_dependency_maps(all_dependency_maps):
30 """Flatten a list of dependency maps into one dictionary.
31
32 Dependency maps have the following structure:
33
34 ```python
35 DEPENDENCIES_MAP = {
36 # The first key in the map is a Bazel package
37 # name of the workspace this file is defined in.
38 "workspace_member_package": {
39
40 # Not all dependnecies are supported for all platforms.
41 # the condition key is the condition required to be true
42 # on the host platform.
43 "condition": {
44
45 # An alias to a crate target. # The label of the crate target the
46 # Aliases are only crate names. # package name refers to.
47 "package_name": "@full//:label",
48 }
49 }
50 }
51 ```
52
53 Args:
54 all_dependency_maps (list): A list of dicts as described above
55
56 Returns:
57 dict: A dictionary as described above
58 """
59 dependencies = {}
60
61 for workspace_deps_map in all_dependency_maps:
62 for pkg_name, conditional_deps_map in workspace_deps_map.items():
63 if pkg_name not in dependencies:
64 non_frozen_map = dict()
65 for key, values in conditional_deps_map.items():
66 non_frozen_map.update({key: dict(values.items())})
67 dependencies.setdefault(pkg_name, non_frozen_map)
68 continue
69
70 for condition, deps_map in conditional_deps_map.items():
71 # If the condition has not been recorded, do so and continue
72 if condition not in dependencies[pkg_name]:
73 dependencies[pkg_name].setdefault(condition, dict(deps_map.items()))
74 continue
75
76 # Alert on any miss-matched dependencies
77 inconsistent_entries = []
78 for crate_name, crate_label in deps_map.items():
79 existing = dependencies[pkg_name][condition].get(crate_name)
80 if existing and existing != crate_label:
81 inconsistent_entries.append((crate_name, existing, crate_label))
82 dependencies[pkg_name][condition].update({crate_name: crate_label})
83
84 return dependencies
85
86def crate_deps(deps, package_name = None):
87 """Finds the fully qualified label of the requested crates for the package where this macro is called.
88
89 Args:
90 deps (list): The desired list of crate targets.
91 package_name (str, optional): The package name of the set of dependencies to look up.
92 Defaults to `native.package_name()`.
93
94 Returns:
95 list: A list of labels to generated rust targets (str)
96 """
97
98 if not deps:
99 return []
100
101 if package_name == None:
102 package_name = native.package_name()
103
104 # Join both sets of dependencies
105 dependencies = _flatten_dependency_maps([
106 _NORMAL_DEPENDENCIES,
107 _NORMAL_DEV_DEPENDENCIES,
108 _PROC_MACRO_DEPENDENCIES,
109 _PROC_MACRO_DEV_DEPENDENCIES,
110 _BUILD_DEPENDENCIES,
111 _BUILD_PROC_MACRO_DEPENDENCIES,
112 ]).pop(package_name, {})
113
114 # Combine all conditional packages so we can easily index over a flat list
115 # TODO: Perhaps this should actually return select statements and maintain
116 # the conditionals of the dependencies
117 flat_deps = {}
118 for deps_set in dependencies.values():
119 for crate_name, crate_label in deps_set.items():
120 flat_deps.update({crate_name: crate_label})
121
122 missing_crates = []
123 crate_targets = []
124 for crate_target in deps:
125 if crate_target not in flat_deps:
126 missing_crates.append(crate_target)
127 else:
128 crate_targets.append(flat_deps[crate_target])
129
130 if missing_crates:
131 fail("Could not find crates `{}` among dependencies of `{}`. Available dependencies were `{}`".format(
132 missing_crates,
133 package_name,
134 dependencies,
135 ))
136
137 return crate_targets
138
139def all_crate_deps(
140 normal = False,
141 normal_dev = False,
142 proc_macro = False,
143 proc_macro_dev = False,
144 build = False,
145 build_proc_macro = False,
146 package_name = None):
147 """Finds the fully qualified label of all requested direct crate dependencies \
148 for the package where this macro is called.
149
150 If no parameters are set, all normal dependencies are returned. Setting any one flag will
151 otherwise impact the contents of the returned list.
152
153 Args:
154 normal (bool, optional): If True, normal dependencies are included in the
155 output list.
156 normal_dev (bool, optional): If True, normla dev dependencies will be
157 included in the output list..
158 proc_macro (bool, optional): If True, proc_macro dependencies are included
159 in the output list.
160 proc_macro_dev (bool, optional): If True, dev proc_macro dependencies are
161 included in the output list.
162 build (bool, optional): If True, build dependencies are included
163 in the output list.
164 build_proc_macro (bool, optional): If True, build proc_macro dependencies are
165 included in the output list.
166 package_name (str, optional): The package name of the set of dependencies to look up.
167 Defaults to `native.package_name()` when unset.
168
169 Returns:
170 list: A list of labels to generated rust targets (str)
171 """
172
173 if package_name == None:
174 package_name = native.package_name()
175
176 # Determine the relevant maps to use
177 all_dependency_maps = []
178 if normal:
179 all_dependency_maps.append(_NORMAL_DEPENDENCIES)
180 if normal_dev:
181 all_dependency_maps.append(_NORMAL_DEV_DEPENDENCIES)
182 if proc_macro:
183 all_dependency_maps.append(_PROC_MACRO_DEPENDENCIES)
184 if proc_macro_dev:
185 all_dependency_maps.append(_PROC_MACRO_DEV_DEPENDENCIES)
186 if build:
187 all_dependency_maps.append(_BUILD_DEPENDENCIES)
188 if build_proc_macro:
189 all_dependency_maps.append(_BUILD_PROC_MACRO_DEPENDENCIES)
190
191 # Default to always using normal dependencies
192 if not all_dependency_maps:
193 all_dependency_maps.append(_NORMAL_DEPENDENCIES)
194
195 dependencies = _flatten_dependency_maps(all_dependency_maps).pop(package_name, None)
196
197 if not dependencies:
198 if dependencies == None:
199 fail("Tried to get all_crate_deps for package " + package_name + " but that package had no Cargo.toml file")
200 else:
201 return []
202
203 crate_deps = list(dependencies.pop(_COMMON_CONDITION, {}).values())
204 for condition, deps in dependencies.items():
205 crate_deps += selects.with_or({_CONDITIONS[condition]: deps.values()})
206
207 return crate_deps
208
209def aliases(
210 normal = False,
211 normal_dev = False,
212 proc_macro = False,
213 proc_macro_dev = False,
214 build = False,
215 build_proc_macro = False,
216 package_name = None):
217 """Produces a map of Crate alias names to their original label
218
219 If no dependency kinds are specified, `normal` and `proc_macro` are used by default.
220 Setting any one flag will otherwise determine the contents of the returned dict.
221
222 Args:
223 normal (bool, optional): If True, normal dependencies are included in the
224 output list.
225 normal_dev (bool, optional): If True, normla dev dependencies will be
226 included in the output list..
227 proc_macro (bool, optional): If True, proc_macro dependencies are included
228 in the output list.
229 proc_macro_dev (bool, optional): If True, dev proc_macro dependencies are
230 included in the output list.
231 build (bool, optional): If True, build dependencies are included
232 in the output list.
233 build_proc_macro (bool, optional): If True, build proc_macro dependencies are
234 included in the output list.
235 package_name (str, optional): The package name of the set of dependencies to look up.
236 Defaults to `native.package_name()` when unset.
237
238 Returns:
239 dict: The aliases of all associated packages
240 """
241 if package_name == None:
242 package_name = native.package_name()
243
244 # Determine the relevant maps to use
245 all_aliases_maps = []
246 if normal:
247 all_aliases_maps.append(_NORMAL_ALIASES)
248 if normal_dev:
249 all_aliases_maps.append(_NORMAL_DEV_ALIASES)
250 if proc_macro:
251 all_aliases_maps.append(_PROC_MACRO_ALIASES)
252 if proc_macro_dev:
253 all_aliases_maps.append(_PROC_MACRO_DEV_ALIASES)
254 if build:
255 all_aliases_maps.append(_BUILD_ALIASES)
256 if build_proc_macro:
257 all_aliases_maps.append(_BUILD_PROC_MACRO_ALIASES)
258
259 # Default to always using normal aliases
260 if not all_aliases_maps:
261 all_aliases_maps.append(_NORMAL_ALIASES)
262 all_aliases_maps.append(_PROC_MACRO_ALIASES)
263
264 aliases = _flatten_dependency_maps(all_aliases_maps).pop(package_name, None)
265
266 if not aliases:
267 return dict()
268
269 common_items = aliases.pop(_COMMON_CONDITION, {}).items()
270
271 # If there are only common items in the dictionary, immediately return them
272 if not len(aliases.keys()) == 1:
273 return dict(common_items)
274
275 # Build a single select statement where each conditional has accounted for the
276 # common set of aliases.
277 crate_aliases = {"//conditions:default": common_items}
278 for condition, deps in aliases.items():
279 condition_triples = _CONDITIONS[condition]
280 if condition_triples in crate_aliases:
281 crate_aliases[condition_triples].update(deps)
282 else:
283 crate_aliases.update({_CONDITIONS[condition]: dict(deps.items() + common_items)})
284
285 return selects.with_or(crate_aliases)
286
287###############################################################################
288# WORKSPACE MEMBER DEPS AND ALIASES
289###############################################################################
290
291_NORMAL_DEPENDENCIES = {
292 "": {
293 _COMMON_CONDITION: {
294 "bindgen": "@rules_rust_bindgen__bindgen-0.60.1//:bindgen",
295 "libloading": "@rules_rust_bindgen__libloading-0.7.3//:libloading",
296 },
297 },
298}
299
300_NORMAL_ALIASES = {
301 "": {
302 _COMMON_CONDITION: {
303 },
304 },
305}
306
307_NORMAL_DEV_DEPENDENCIES = {
308 "": {
309 },
310}
311
312_NORMAL_DEV_ALIASES = {
313 "": {
314 },
315}
316
317_PROC_MACRO_DEPENDENCIES = {
318 "": {
319 },
320}
321
322_PROC_MACRO_ALIASES = {
323 "": {
324 },
325}
326
327_PROC_MACRO_DEV_DEPENDENCIES = {
328 "": {
329 },
330}
331
332_PROC_MACRO_DEV_ALIASES = {
333 "": {
334 },
335}
336
337_BUILD_DEPENDENCIES = {
338 "": {
339 },
340}
341
342_BUILD_ALIASES = {
343 "": {
344 },
345}
346
347_BUILD_PROC_MACRO_DEPENDENCIES = {
348 "": {
349 },
350}
351
352_BUILD_PROC_MACRO_ALIASES = {
353 "": {
354 },
355}
356
357_CONDITIONS = {
358 "cfg(target_os = \"hermit\")": [],
359 "cfg(unix)": ["aarch64-apple-darwin", "aarch64-apple-ios", "aarch64-apple-ios-sim", "aarch64-linux-android", "aarch64-unknown-linux-gnu", "arm-unknown-linux-gnueabi", "armv7-linux-androideabi", "armv7-unknown-linux-gnueabi", "i686-apple-darwin", "i686-linux-android", "i686-unknown-freebsd", "i686-unknown-linux-gnu", "powerpc-unknown-linux-gnu", "s390x-unknown-linux-gnu", "x86_64-apple-darwin", "x86_64-apple-ios", "x86_64-linux-android", "x86_64-unknown-freebsd", "x86_64-unknown-linux-gnu"],
360 "cfg(windows)": ["i686-pc-windows-msvc", "x86_64-pc-windows-msvc"],
361 "i686-pc-windows-gnu": [],
362 "x86_64-pc-windows-gnu": [],
363}
364
365###############################################################################
366
367def crate_repositories():
368 """A macro for defining repositories for all generated crates"""
369 maybe(
370 http_archive,
371 name = "rules_rust_bindgen__aho-corasick-0.7.18",
372 sha256 = "1e37cfd5e7657ada45f742d6e99ca5788580b5c529dc78faf11ece6dc702656f",
373 type = "tar.gz",
374 urls = ["https://crates.io/api/v1/crates/aho-corasick/0.7.18/download"],
375 strip_prefix = "aho-corasick-0.7.18",
376 build_file = Label("@rules_rust//bindgen/3rdparty/crates:BUILD.aho-corasick-0.7.18.bazel"),
377 )
378
379 maybe(
380 http_archive,
381 name = "rules_rust_bindgen__atty-0.2.14",
382 sha256 = "d9b39be18770d11421cdb1b9947a45dd3f37e93092cbf377614828a319d5fee8",
383 type = "tar.gz",
384 urls = ["https://crates.io/api/v1/crates/atty/0.2.14/download"],
385 strip_prefix = "atty-0.2.14",
386 build_file = Label("@rules_rust//bindgen/3rdparty/crates:BUILD.atty-0.2.14.bazel"),
387 )
388
389 maybe(
390 http_archive,
391 name = "rules_rust_bindgen__autocfg-1.1.0",
392 sha256 = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa",
393 type = "tar.gz",
394 urls = ["https://crates.io/api/v1/crates/autocfg/1.1.0/download"],
395 strip_prefix = "autocfg-1.1.0",
396 build_file = Label("@rules_rust//bindgen/3rdparty/crates:BUILD.autocfg-1.1.0.bazel"),
397 )
398
399 maybe(
400 http_archive,
401 name = "rules_rust_bindgen__bindgen-0.60.1",
402 sha256 = "062dddbc1ba4aca46de6338e2bf87771414c335f7b2f2036e8f3e9befebf88e6",
403 type = "tar.gz",
404 urls = ["https://crates.io/api/v1/crates/bindgen/0.60.1/download"],
405 strip_prefix = "bindgen-0.60.1",
406 build_file = Label("@rules_rust//bindgen/3rdparty/crates:BUILD.bindgen-0.60.1.bazel"),
407 )
408
409 maybe(
410 http_archive,
411 name = "rules_rust_bindgen__bitflags-1.3.2",
412 sha256 = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a",
413 type = "tar.gz",
414 urls = ["https://crates.io/api/v1/crates/bitflags/1.3.2/download"],
415 strip_prefix = "bitflags-1.3.2",
416 build_file = Label("@rules_rust//bindgen/3rdparty/crates:BUILD.bitflags-1.3.2.bazel"),
417 )
418
419 maybe(
420 http_archive,
421 name = "rules_rust_bindgen__cexpr-0.6.0",
422 sha256 = "6fac387a98bb7c37292057cffc56d62ecb629900026402633ae9160df93a8766",
423 type = "tar.gz",
424 urls = ["https://crates.io/api/v1/crates/cexpr/0.6.0/download"],
425 strip_prefix = "cexpr-0.6.0",
426 build_file = Label("@rules_rust//bindgen/3rdparty/crates:BUILD.cexpr-0.6.0.bazel"),
427 )
428
429 maybe(
430 http_archive,
431 name = "rules_rust_bindgen__cfg-if-1.0.0",
432 sha256 = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd",
433 type = "tar.gz",
434 urls = ["https://crates.io/api/v1/crates/cfg-if/1.0.0/download"],
435 strip_prefix = "cfg-if-1.0.0",
436 build_file = Label("@rules_rust//bindgen/3rdparty/crates:BUILD.cfg-if-1.0.0.bazel"),
437 )
438
439 maybe(
440 http_archive,
441 name = "rules_rust_bindgen__clang-sys-1.3.3",
442 sha256 = "5a050e2153c5be08febd6734e29298e844fdb0fa21aeddd63b4eb7baa106c69b",
443 type = "tar.gz",
444 urls = ["https://crates.io/api/v1/crates/clang-sys/1.3.3/download"],
445 strip_prefix = "clang-sys-1.3.3",
446 build_file = Label("@rules_rust//bindgen/3rdparty/crates:BUILD.clang-sys-1.3.3.bazel"),
447 )
448
449 maybe(
450 http_archive,
451 name = "rules_rust_bindgen__clap-3.2.12",
452 sha256 = "ab8b79fe3946ceb4a0b1c080b4018992b8d27e9ff363644c1c9b6387c854614d",
453 type = "tar.gz",
454 urls = ["https://crates.io/api/v1/crates/clap/3.2.12/download"],
455 strip_prefix = "clap-3.2.12",
456 build_file = Label("@rules_rust//bindgen/3rdparty/crates:BUILD.clap-3.2.12.bazel"),
457 )
458
459 maybe(
460 http_archive,
461 name = "rules_rust_bindgen__clap_lex-0.2.4",
462 sha256 = "2850f2f5a82cbf437dd5af4d49848fbdfc27c157c3d010345776f952765261c5",
463 type = "tar.gz",
464 urls = ["https://crates.io/api/v1/crates/clap_lex/0.2.4/download"],
465 strip_prefix = "clap_lex-0.2.4",
466 build_file = Label("@rules_rust//bindgen/3rdparty/crates:BUILD.clap_lex-0.2.4.bazel"),
467 )
468
469 maybe(
470 http_archive,
471 name = "rules_rust_bindgen__either-1.7.0",
472 sha256 = "3f107b87b6afc2a64fd13cac55fe06d6c8859f12d4b14cbcdd2c67d0976781be",
473 type = "tar.gz",
474 urls = ["https://crates.io/api/v1/crates/either/1.7.0/download"],
475 strip_prefix = "either-1.7.0",
476 build_file = Label("@rules_rust//bindgen/3rdparty/crates:BUILD.either-1.7.0.bazel"),
477 )
478
479 maybe(
480 http_archive,
481 name = "rules_rust_bindgen__env_logger-0.9.0",
482 sha256 = "0b2cf0344971ee6c64c31be0d530793fba457d322dfec2810c453d0ef228f9c3",
483 type = "tar.gz",
484 urls = ["https://crates.io/api/v1/crates/env_logger/0.9.0/download"],
485 strip_prefix = "env_logger-0.9.0",
486 build_file = Label("@rules_rust//bindgen/3rdparty/crates:BUILD.env_logger-0.9.0.bazel"),
487 )
488
489 maybe(
490 http_archive,
491 name = "rules_rust_bindgen__glob-0.3.0",
492 sha256 = "9b919933a397b79c37e33b77bb2aa3dc8eb6e165ad809e58ff75bc7db2e34574",
493 type = "tar.gz",
494 urls = ["https://crates.io/api/v1/crates/glob/0.3.0/download"],
495 strip_prefix = "glob-0.3.0",
496 build_file = Label("@rules_rust//bindgen/3rdparty/crates:BUILD.glob-0.3.0.bazel"),
497 )
498
499 maybe(
500 http_archive,
501 name = "rules_rust_bindgen__hashbrown-0.12.3",
502 sha256 = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888",
503 type = "tar.gz",
504 urls = ["https://crates.io/api/v1/crates/hashbrown/0.12.3/download"],
505 strip_prefix = "hashbrown-0.12.3",
506 build_file = Label("@rules_rust//bindgen/3rdparty/crates:BUILD.hashbrown-0.12.3.bazel"),
507 )
508
509 maybe(
510 http_archive,
511 name = "rules_rust_bindgen__hermit-abi-0.1.19",
512 sha256 = "62b467343b94ba476dcb2500d242dadbb39557df889310ac77c5d99100aaac33",
513 type = "tar.gz",
514 urls = ["https://crates.io/api/v1/crates/hermit-abi/0.1.19/download"],
515 strip_prefix = "hermit-abi-0.1.19",
516 build_file = Label("@rules_rust//bindgen/3rdparty/crates:BUILD.hermit-abi-0.1.19.bazel"),
517 )
518
519 maybe(
520 http_archive,
521 name = "rules_rust_bindgen__humantime-2.1.0",
522 sha256 = "9a3a5bfb195931eeb336b2a7b4d761daec841b97f947d34394601737a7bba5e4",
523 type = "tar.gz",
524 urls = ["https://crates.io/api/v1/crates/humantime/2.1.0/download"],
525 strip_prefix = "humantime-2.1.0",
526 build_file = Label("@rules_rust//bindgen/3rdparty/crates:BUILD.humantime-2.1.0.bazel"),
527 )
528
529 maybe(
530 http_archive,
531 name = "rules_rust_bindgen__indexmap-1.9.1",
532 sha256 = "10a35a97730320ffe8e2d410b5d3b69279b98d2c14bdb8b70ea89ecf7888d41e",
533 type = "tar.gz",
534 urls = ["https://crates.io/api/v1/crates/indexmap/1.9.1/download"],
535 strip_prefix = "indexmap-1.9.1",
536 build_file = Label("@rules_rust//bindgen/3rdparty/crates:BUILD.indexmap-1.9.1.bazel"),
537 )
538
539 maybe(
540 http_archive,
541 name = "rules_rust_bindgen__lazy_static-1.4.0",
542 sha256 = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646",
543 type = "tar.gz",
544 urls = ["https://crates.io/api/v1/crates/lazy_static/1.4.0/download"],
545 strip_prefix = "lazy_static-1.4.0",
546 build_file = Label("@rules_rust//bindgen/3rdparty/crates:BUILD.lazy_static-1.4.0.bazel"),
547 )
548
549 maybe(
550 http_archive,
551 name = "rules_rust_bindgen__lazycell-1.3.0",
552 sha256 = "830d08ce1d1d941e6b30645f1a0eb5643013d835ce3779a5fc208261dbe10f55",
553 type = "tar.gz",
554 urls = ["https://crates.io/api/v1/crates/lazycell/1.3.0/download"],
555 strip_prefix = "lazycell-1.3.0",
556 build_file = Label("@rules_rust//bindgen/3rdparty/crates:BUILD.lazycell-1.3.0.bazel"),
557 )
558
559 maybe(
560 http_archive,
561 name = "rules_rust_bindgen__libc-0.2.126",
562 sha256 = "349d5a591cd28b49e1d1037471617a32ddcda5731b99419008085f72d5a53836",
563 type = "tar.gz",
564 urls = ["https://crates.io/api/v1/crates/libc/0.2.126/download"],
565 strip_prefix = "libc-0.2.126",
566 build_file = Label("@rules_rust//bindgen/3rdparty/crates:BUILD.libc-0.2.126.bazel"),
567 )
568
569 maybe(
570 http_archive,
571 name = "rules_rust_bindgen__libloading-0.7.3",
572 sha256 = "efbc0f03f9a775e9f6aed295c6a1ba2253c5757a9e03d55c6caa46a681abcddd",
573 type = "tar.gz",
574 urls = ["https://crates.io/api/v1/crates/libloading/0.7.3/download"],
575 strip_prefix = "libloading-0.7.3",
576 build_file = Label("@rules_rust//bindgen/3rdparty/crates:BUILD.libloading-0.7.3.bazel"),
577 )
578
579 maybe(
580 http_archive,
581 name = "rules_rust_bindgen__log-0.4.17",
582 sha256 = "abb12e687cfb44aa40f41fc3978ef76448f9b6038cad6aef4259d3c095a2382e",
583 type = "tar.gz",
584 urls = ["https://crates.io/api/v1/crates/log/0.4.17/download"],
585 strip_prefix = "log-0.4.17",
586 build_file = Label("@rules_rust//bindgen/3rdparty/crates:BUILD.log-0.4.17.bazel"),
587 )
588
589 maybe(
590 http_archive,
591 name = "rules_rust_bindgen__memchr-2.5.0",
592 sha256 = "2dffe52ecf27772e601905b7522cb4ef790d2cc203488bbd0e2fe85fcb74566d",
593 type = "tar.gz",
594 urls = ["https://crates.io/api/v1/crates/memchr/2.5.0/download"],
595 strip_prefix = "memchr-2.5.0",
596 build_file = Label("@rules_rust//bindgen/3rdparty/crates:BUILD.memchr-2.5.0.bazel"),
597 )
598
599 maybe(
600 http_archive,
601 name = "rules_rust_bindgen__minimal-lexical-0.2.1",
602 sha256 = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a",
603 type = "tar.gz",
604 urls = ["https://crates.io/api/v1/crates/minimal-lexical/0.2.1/download"],
605 strip_prefix = "minimal-lexical-0.2.1",
606 build_file = Label("@rules_rust//bindgen/3rdparty/crates:BUILD.minimal-lexical-0.2.1.bazel"),
607 )
608
609 maybe(
610 http_archive,
611 name = "rules_rust_bindgen__nom-7.1.1",
612 sha256 = "a8903e5a29a317527874d0402f867152a3d21c908bb0b933e416c65e301d4c36",
613 type = "tar.gz",
614 urls = ["https://crates.io/api/v1/crates/nom/7.1.1/download"],
615 strip_prefix = "nom-7.1.1",
616 build_file = Label("@rules_rust//bindgen/3rdparty/crates:BUILD.nom-7.1.1.bazel"),
617 )
618
619 maybe(
620 http_archive,
621 name = "rules_rust_bindgen__os_str_bytes-6.2.0",
622 sha256 = "648001efe5d5c0102d8cea768e348da85d90af8ba91f0bea908f157951493cd4",
623 type = "tar.gz",
624 urls = ["https://crates.io/api/v1/crates/os_str_bytes/6.2.0/download"],
625 strip_prefix = "os_str_bytes-6.2.0",
626 build_file = Label("@rules_rust//bindgen/3rdparty/crates:BUILD.os_str_bytes-6.2.0.bazel"),
627 )
628
629 maybe(
630 http_archive,
631 name = "rules_rust_bindgen__peeking_take_while-0.1.2",
632 sha256 = "19b17cddbe7ec3f8bc800887bab5e717348c95ea2ca0b1bf0837fb964dc67099",
633 type = "tar.gz",
634 urls = ["https://crates.io/api/v1/crates/peeking_take_while/0.1.2/download"],
635 strip_prefix = "peeking_take_while-0.1.2",
636 build_file = Label("@rules_rust//bindgen/3rdparty/crates:BUILD.peeking_take_while-0.1.2.bazel"),
637 )
638
639 maybe(
640 http_archive,
641 name = "rules_rust_bindgen__proc-macro2-1.0.40",
642 sha256 = "dd96a1e8ed2596c337f8eae5f24924ec83f5ad5ab21ea8e455d3566c69fbcaf7",
643 type = "tar.gz",
644 urls = ["https://crates.io/api/v1/crates/proc-macro2/1.0.40/download"],
645 strip_prefix = "proc-macro2-1.0.40",
646 build_file = Label("@rules_rust//bindgen/3rdparty/crates:BUILD.proc-macro2-1.0.40.bazel"),
647 )
648
649 maybe(
650 http_archive,
651 name = "rules_rust_bindgen__quote-1.0.20",
652 sha256 = "3bcdf212e9776fbcb2d23ab029360416bb1706b1aea2d1a5ba002727cbcab804",
653 type = "tar.gz",
654 urls = ["https://crates.io/api/v1/crates/quote/1.0.20/download"],
655 strip_prefix = "quote-1.0.20",
656 build_file = Label("@rules_rust//bindgen/3rdparty/crates:BUILD.quote-1.0.20.bazel"),
657 )
658
659 maybe(
660 http_archive,
661 name = "rules_rust_bindgen__regex-1.6.0",
662 sha256 = "4c4eb3267174b8c6c2f654116623910a0fef09c4753f8dd83db29c48a0df988b",
663 type = "tar.gz",
664 urls = ["https://crates.io/api/v1/crates/regex/1.6.0/download"],
665 strip_prefix = "regex-1.6.0",
666 build_file = Label("@rules_rust//bindgen/3rdparty/crates:BUILD.regex-1.6.0.bazel"),
667 )
668
669 maybe(
670 http_archive,
671 name = "rules_rust_bindgen__regex-syntax-0.6.27",
672 sha256 = "a3f87b73ce11b1619a3c6332f45341e0047173771e8b8b73f87bfeefb7b56244",
673 type = "tar.gz",
674 urls = ["https://crates.io/api/v1/crates/regex-syntax/0.6.27/download"],
675 strip_prefix = "regex-syntax-0.6.27",
676 build_file = Label("@rules_rust//bindgen/3rdparty/crates:BUILD.regex-syntax-0.6.27.bazel"),
677 )
678
679 maybe(
680 http_archive,
681 name = "rules_rust_bindgen__rustc-hash-1.1.0",
682 sha256 = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2",
683 type = "tar.gz",
684 urls = ["https://crates.io/api/v1/crates/rustc-hash/1.1.0/download"],
685 strip_prefix = "rustc-hash-1.1.0",
686 build_file = Label("@rules_rust//bindgen/3rdparty/crates:BUILD.rustc-hash-1.1.0.bazel"),
687 )
688
689 maybe(
690 http_archive,
691 name = "rules_rust_bindgen__shlex-1.1.0",
692 sha256 = "43b2853a4d09f215c24cc5489c992ce46052d359b5109343cbafbf26bc62f8a3",
693 type = "tar.gz",
694 urls = ["https://crates.io/api/v1/crates/shlex/1.1.0/download"],
695 strip_prefix = "shlex-1.1.0",
696 build_file = Label("@rules_rust//bindgen/3rdparty/crates:BUILD.shlex-1.1.0.bazel"),
697 )
698
699 maybe(
700 http_archive,
701 name = "rules_rust_bindgen__strsim-0.10.0",
702 sha256 = "73473c0e59e6d5812c5dfe2a064a6444949f089e20eec9a2e5506596494e4623",
703 type = "tar.gz",
704 urls = ["https://crates.io/api/v1/crates/strsim/0.10.0/download"],
705 strip_prefix = "strsim-0.10.0",
706 build_file = Label("@rules_rust//bindgen/3rdparty/crates:BUILD.strsim-0.10.0.bazel"),
707 )
708
709 maybe(
710 http_archive,
711 name = "rules_rust_bindgen__termcolor-1.1.3",
712 sha256 = "bab24d30b911b2376f3a13cc2cd443142f0c81dda04c118693e35b3835757755",
713 type = "tar.gz",
714 urls = ["https://crates.io/api/v1/crates/termcolor/1.1.3/download"],
715 strip_prefix = "termcolor-1.1.3",
716 build_file = Label("@rules_rust//bindgen/3rdparty/crates:BUILD.termcolor-1.1.3.bazel"),
717 )
718
719 maybe(
720 http_archive,
721 name = "rules_rust_bindgen__textwrap-0.15.0",
722 sha256 = "b1141d4d61095b28419e22cb0bbf02755f5e54e0526f97f1e3d1d160e60885fb",
723 type = "tar.gz",
724 urls = ["https://crates.io/api/v1/crates/textwrap/0.15.0/download"],
725 strip_prefix = "textwrap-0.15.0",
726 build_file = Label("@rules_rust//bindgen/3rdparty/crates:BUILD.textwrap-0.15.0.bazel"),
727 )
728
729 maybe(
730 http_archive,
731 name = "rules_rust_bindgen__unicode-ident-1.0.2",
732 sha256 = "15c61ba63f9235225a22310255a29b806b907c9b8c964bcbd0a2c70f3f2deea7",
733 type = "tar.gz",
734 urls = ["https://crates.io/api/v1/crates/unicode-ident/1.0.2/download"],
735 strip_prefix = "unicode-ident-1.0.2",
736 build_file = Label("@rules_rust//bindgen/3rdparty/crates:BUILD.unicode-ident-1.0.2.bazel"),
737 )
738
739 maybe(
740 http_archive,
741 name = "rules_rust_bindgen__which-4.2.5",
742 sha256 = "5c4fb54e6113b6a8772ee41c3404fb0301ac79604489467e0a9ce1f3e97c24ae",
743 type = "tar.gz",
744 urls = ["https://crates.io/api/v1/crates/which/4.2.5/download"],
745 strip_prefix = "which-4.2.5",
746 build_file = Label("@rules_rust//bindgen/3rdparty/crates:BUILD.which-4.2.5.bazel"),
747 )
748
749 maybe(
750 http_archive,
751 name = "rules_rust_bindgen__winapi-0.3.9",
752 sha256 = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419",
753 type = "tar.gz",
754 urls = ["https://crates.io/api/v1/crates/winapi/0.3.9/download"],
755 strip_prefix = "winapi-0.3.9",
756 build_file = Label("@rules_rust//bindgen/3rdparty/crates:BUILD.winapi-0.3.9.bazel"),
757 )
758
759 maybe(
760 http_archive,
761 name = "rules_rust_bindgen__winapi-i686-pc-windows-gnu-0.4.0",
762 sha256 = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6",
763 type = "tar.gz",
764 urls = ["https://crates.io/api/v1/crates/winapi-i686-pc-windows-gnu/0.4.0/download"],
765 strip_prefix = "winapi-i686-pc-windows-gnu-0.4.0",
766 build_file = Label("@rules_rust//bindgen/3rdparty/crates:BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel"),
767 )
768
769 maybe(
770 http_archive,
771 name = "rules_rust_bindgen__winapi-util-0.1.5",
772 sha256 = "70ec6ce85bb158151cae5e5c87f95a8e97d2c0c4b001223f33a334e3ce5de178",
773 type = "tar.gz",
774 urls = ["https://crates.io/api/v1/crates/winapi-util/0.1.5/download"],
775 strip_prefix = "winapi-util-0.1.5",
776 build_file = Label("@rules_rust//bindgen/3rdparty/crates:BUILD.winapi-util-0.1.5.bazel"),
777 )
778
779 maybe(
780 http_archive,
781 name = "rules_rust_bindgen__winapi-x86_64-pc-windows-gnu-0.4.0",
782 sha256 = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f",
783 type = "tar.gz",
784 urls = ["https://crates.io/api/v1/crates/winapi-x86_64-pc-windows-gnu/0.4.0/download"],
785 strip_prefix = "winapi-x86_64-pc-windows-gnu-0.4.0",
786 build_file = Label("@rules_rust//bindgen/3rdparty/crates:BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel"),
787 )