blob: f7e6b3ce9cbde3ee3f0c72d5aaf40e8ebedaf3ea [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 //tools/rust_analyzer/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 "anyhow": "@rules_rust_rust_analyzer__anyhow-1.0.58//:anyhow",
295 "clap": "@rules_rust_rust_analyzer__clap-3.2.12//:clap",
296 "env_logger": "@rules_rust_rust_analyzer__env_logger-0.9.0//:env_logger",
297 "itertools": "@rules_rust_rust_analyzer__itertools-0.10.3//:itertools",
298 "log": "@rules_rust_rust_analyzer__log-0.4.17//:log",
299 "serde": "@rules_rust_rust_analyzer__serde-1.0.139//:serde",
300 "serde_json": "@rules_rust_rust_analyzer__serde_json-1.0.82//:serde_json",
301 },
302 },
303}
304
305_NORMAL_ALIASES = {
306 "": {
307 _COMMON_CONDITION: {
308 },
309 },
310}
311
312_NORMAL_DEV_DEPENDENCIES = {
313 "": {
314 },
315}
316
317_NORMAL_DEV_ALIASES = {
318 "": {
319 },
320}
321
322_PROC_MACRO_DEPENDENCIES = {
323 "": {
324 },
325}
326
327_PROC_MACRO_ALIASES = {
328 "": {
329 },
330}
331
332_PROC_MACRO_DEV_DEPENDENCIES = {
333 "": {
334 },
335}
336
337_PROC_MACRO_DEV_ALIASES = {
338 "": {
339 },
340}
341
342_BUILD_DEPENDENCIES = {
343 "": {
344 },
345}
346
347_BUILD_ALIASES = {
348 "": {
349 },
350}
351
352_BUILD_PROC_MACRO_DEPENDENCIES = {
353 "": {
354 },
355}
356
357_BUILD_PROC_MACRO_ALIASES = {
358 "": {
359 },
360}
361
362_CONDITIONS = {
363 "cfg(target_os = \"hermit\")": [],
364 "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"],
365 "cfg(windows)": ["i686-pc-windows-msvc", "x86_64-pc-windows-msvc"],
366 "i686-pc-windows-gnu": [],
367 "x86_64-pc-windows-gnu": [],
368}
369
370###############################################################################
371
372def crate_repositories():
373 """A macro for defining repositories for all generated crates"""
374 maybe(
375 http_archive,
376 name = "rules_rust_rust_analyzer__aho-corasick-0.7.18",
377 sha256 = "1e37cfd5e7657ada45f742d6e99ca5788580b5c529dc78faf11ece6dc702656f",
378 type = "tar.gz",
379 urls = ["https://crates.io/api/v1/crates/aho-corasick/0.7.18/download"],
380 strip_prefix = "aho-corasick-0.7.18",
381 build_file = Label("@rules_rust//tools/rust_analyzer/3rdparty/crates:BUILD.aho-corasick-0.7.18.bazel"),
382 )
383
384 maybe(
385 http_archive,
386 name = "rules_rust_rust_analyzer__anyhow-1.0.58",
387 sha256 = "bb07d2053ccdbe10e2af2995a2f116c1330396493dc1269f6a91d0ae82e19704",
388 type = "tar.gz",
389 urls = ["https://crates.io/api/v1/crates/anyhow/1.0.58/download"],
390 strip_prefix = "anyhow-1.0.58",
391 build_file = Label("@rules_rust//tools/rust_analyzer/3rdparty/crates:BUILD.anyhow-1.0.58.bazel"),
392 )
393
394 maybe(
395 http_archive,
396 name = "rules_rust_rust_analyzer__atty-0.2.14",
397 sha256 = "d9b39be18770d11421cdb1b9947a45dd3f37e93092cbf377614828a319d5fee8",
398 type = "tar.gz",
399 urls = ["https://crates.io/api/v1/crates/atty/0.2.14/download"],
400 strip_prefix = "atty-0.2.14",
401 build_file = Label("@rules_rust//tools/rust_analyzer/3rdparty/crates:BUILD.atty-0.2.14.bazel"),
402 )
403
404 maybe(
405 http_archive,
406 name = "rules_rust_rust_analyzer__autocfg-1.1.0",
407 sha256 = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa",
408 type = "tar.gz",
409 urls = ["https://crates.io/api/v1/crates/autocfg/1.1.0/download"],
410 strip_prefix = "autocfg-1.1.0",
411 build_file = Label("@rules_rust//tools/rust_analyzer/3rdparty/crates:BUILD.autocfg-1.1.0.bazel"),
412 )
413
414 maybe(
415 http_archive,
416 name = "rules_rust_rust_analyzer__bitflags-1.3.2",
417 sha256 = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a",
418 type = "tar.gz",
419 urls = ["https://crates.io/api/v1/crates/bitflags/1.3.2/download"],
420 strip_prefix = "bitflags-1.3.2",
421 build_file = Label("@rules_rust//tools/rust_analyzer/3rdparty/crates:BUILD.bitflags-1.3.2.bazel"),
422 )
423
424 maybe(
425 http_archive,
426 name = "rules_rust_rust_analyzer__cfg-if-1.0.0",
427 sha256 = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd",
428 type = "tar.gz",
429 urls = ["https://crates.io/api/v1/crates/cfg-if/1.0.0/download"],
430 strip_prefix = "cfg-if-1.0.0",
431 build_file = Label("@rules_rust//tools/rust_analyzer/3rdparty/crates:BUILD.cfg-if-1.0.0.bazel"),
432 )
433
434 maybe(
435 http_archive,
436 name = "rules_rust_rust_analyzer__clap-3.2.12",
437 sha256 = "ab8b79fe3946ceb4a0b1c080b4018992b8d27e9ff363644c1c9b6387c854614d",
438 type = "tar.gz",
439 urls = ["https://crates.io/api/v1/crates/clap/3.2.12/download"],
440 strip_prefix = "clap-3.2.12",
441 build_file = Label("@rules_rust//tools/rust_analyzer/3rdparty/crates:BUILD.clap-3.2.12.bazel"),
442 )
443
444 maybe(
445 http_archive,
446 name = "rules_rust_rust_analyzer__clap_derive-3.2.7",
447 sha256 = "759bf187376e1afa7b85b959e6a664a3e7a95203415dba952ad19139e798f902",
448 type = "tar.gz",
449 urls = ["https://crates.io/api/v1/crates/clap_derive/3.2.7/download"],
450 strip_prefix = "clap_derive-3.2.7",
451 build_file = Label("@rules_rust//tools/rust_analyzer/3rdparty/crates:BUILD.clap_derive-3.2.7.bazel"),
452 )
453
454 maybe(
455 http_archive,
456 name = "rules_rust_rust_analyzer__clap_lex-0.2.4",
457 sha256 = "2850f2f5a82cbf437dd5af4d49848fbdfc27c157c3d010345776f952765261c5",
458 type = "tar.gz",
459 urls = ["https://crates.io/api/v1/crates/clap_lex/0.2.4/download"],
460 strip_prefix = "clap_lex-0.2.4",
461 build_file = Label("@rules_rust//tools/rust_analyzer/3rdparty/crates:BUILD.clap_lex-0.2.4.bazel"),
462 )
463
464 maybe(
465 http_archive,
466 name = "rules_rust_rust_analyzer__either-1.7.0",
467 sha256 = "3f107b87b6afc2a64fd13cac55fe06d6c8859f12d4b14cbcdd2c67d0976781be",
468 type = "tar.gz",
469 urls = ["https://crates.io/api/v1/crates/either/1.7.0/download"],
470 strip_prefix = "either-1.7.0",
471 build_file = Label("@rules_rust//tools/rust_analyzer/3rdparty/crates:BUILD.either-1.7.0.bazel"),
472 )
473
474 maybe(
475 http_archive,
476 name = "rules_rust_rust_analyzer__env_logger-0.9.0",
477 sha256 = "0b2cf0344971ee6c64c31be0d530793fba457d322dfec2810c453d0ef228f9c3",
478 type = "tar.gz",
479 urls = ["https://crates.io/api/v1/crates/env_logger/0.9.0/download"],
480 strip_prefix = "env_logger-0.9.0",
481 build_file = Label("@rules_rust//tools/rust_analyzer/3rdparty/crates:BUILD.env_logger-0.9.0.bazel"),
482 )
483
484 maybe(
485 http_archive,
486 name = "rules_rust_rust_analyzer__hashbrown-0.12.3",
487 sha256 = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888",
488 type = "tar.gz",
489 urls = ["https://crates.io/api/v1/crates/hashbrown/0.12.3/download"],
490 strip_prefix = "hashbrown-0.12.3",
491 build_file = Label("@rules_rust//tools/rust_analyzer/3rdparty/crates:BUILD.hashbrown-0.12.3.bazel"),
492 )
493
494 maybe(
495 http_archive,
496 name = "rules_rust_rust_analyzer__heck-0.4.0",
497 sha256 = "2540771e65fc8cb83cd6e8a237f70c319bd5c29f78ed1084ba5d50eeac86f7f9",
498 type = "tar.gz",
499 urls = ["https://crates.io/api/v1/crates/heck/0.4.0/download"],
500 strip_prefix = "heck-0.4.0",
501 build_file = Label("@rules_rust//tools/rust_analyzer/3rdparty/crates:BUILD.heck-0.4.0.bazel"),
502 )
503
504 maybe(
505 http_archive,
506 name = "rules_rust_rust_analyzer__hermit-abi-0.1.19",
507 sha256 = "62b467343b94ba476dcb2500d242dadbb39557df889310ac77c5d99100aaac33",
508 type = "tar.gz",
509 urls = ["https://crates.io/api/v1/crates/hermit-abi/0.1.19/download"],
510 strip_prefix = "hermit-abi-0.1.19",
511 build_file = Label("@rules_rust//tools/rust_analyzer/3rdparty/crates:BUILD.hermit-abi-0.1.19.bazel"),
512 )
513
514 maybe(
515 http_archive,
516 name = "rules_rust_rust_analyzer__humantime-2.1.0",
517 sha256 = "9a3a5bfb195931eeb336b2a7b4d761daec841b97f947d34394601737a7bba5e4",
518 type = "tar.gz",
519 urls = ["https://crates.io/api/v1/crates/humantime/2.1.0/download"],
520 strip_prefix = "humantime-2.1.0",
521 build_file = Label("@rules_rust//tools/rust_analyzer/3rdparty/crates:BUILD.humantime-2.1.0.bazel"),
522 )
523
524 maybe(
525 http_archive,
526 name = "rules_rust_rust_analyzer__indexmap-1.9.1",
527 sha256 = "10a35a97730320ffe8e2d410b5d3b69279b98d2c14bdb8b70ea89ecf7888d41e",
528 type = "tar.gz",
529 urls = ["https://crates.io/api/v1/crates/indexmap/1.9.1/download"],
530 strip_prefix = "indexmap-1.9.1",
531 build_file = Label("@rules_rust//tools/rust_analyzer/3rdparty/crates:BUILD.indexmap-1.9.1.bazel"),
532 )
533
534 maybe(
535 http_archive,
536 name = "rules_rust_rust_analyzer__itertools-0.10.3",
537 sha256 = "a9a9d19fa1e79b6215ff29b9d6880b706147f16e9b1dbb1e4e5947b5b02bc5e3",
538 type = "tar.gz",
539 urls = ["https://crates.io/api/v1/crates/itertools/0.10.3/download"],
540 strip_prefix = "itertools-0.10.3",
541 build_file = Label("@rules_rust//tools/rust_analyzer/3rdparty/crates:BUILD.itertools-0.10.3.bazel"),
542 )
543
544 maybe(
545 http_archive,
546 name = "rules_rust_rust_analyzer__itoa-1.0.2",
547 sha256 = "112c678d4050afce233f4f2852bb2eb519230b3cf12f33585275537d7e41578d",
548 type = "tar.gz",
549 urls = ["https://crates.io/api/v1/crates/itoa/1.0.2/download"],
550 strip_prefix = "itoa-1.0.2",
551 build_file = Label("@rules_rust//tools/rust_analyzer/3rdparty/crates:BUILD.itoa-1.0.2.bazel"),
552 )
553
554 maybe(
555 http_archive,
556 name = "rules_rust_rust_analyzer__libc-0.2.126",
557 sha256 = "349d5a591cd28b49e1d1037471617a32ddcda5731b99419008085f72d5a53836",
558 type = "tar.gz",
559 urls = ["https://crates.io/api/v1/crates/libc/0.2.126/download"],
560 strip_prefix = "libc-0.2.126",
561 build_file = Label("@rules_rust//tools/rust_analyzer/3rdparty/crates:BUILD.libc-0.2.126.bazel"),
562 )
563
564 maybe(
565 http_archive,
566 name = "rules_rust_rust_analyzer__log-0.4.17",
567 sha256 = "abb12e687cfb44aa40f41fc3978ef76448f9b6038cad6aef4259d3c095a2382e",
568 type = "tar.gz",
569 urls = ["https://crates.io/api/v1/crates/log/0.4.17/download"],
570 strip_prefix = "log-0.4.17",
571 build_file = Label("@rules_rust//tools/rust_analyzer/3rdparty/crates:BUILD.log-0.4.17.bazel"),
572 )
573
574 maybe(
575 http_archive,
576 name = "rules_rust_rust_analyzer__memchr-2.5.0",
577 sha256 = "2dffe52ecf27772e601905b7522cb4ef790d2cc203488bbd0e2fe85fcb74566d",
578 type = "tar.gz",
579 urls = ["https://crates.io/api/v1/crates/memchr/2.5.0/download"],
580 strip_prefix = "memchr-2.5.0",
581 build_file = Label("@rules_rust//tools/rust_analyzer/3rdparty/crates:BUILD.memchr-2.5.0.bazel"),
582 )
583
584 maybe(
585 http_archive,
586 name = "rules_rust_rust_analyzer__once_cell-1.13.0",
587 sha256 = "18a6dbe30758c9f83eb00cbea4ac95966305f5a7772f3f42ebfc7fc7eddbd8e1",
588 type = "tar.gz",
589 urls = ["https://crates.io/api/v1/crates/once_cell/1.13.0/download"],
590 strip_prefix = "once_cell-1.13.0",
591 build_file = Label("@rules_rust//tools/rust_analyzer/3rdparty/crates:BUILD.once_cell-1.13.0.bazel"),
592 )
593
594 maybe(
595 http_archive,
596 name = "rules_rust_rust_analyzer__os_str_bytes-6.2.0",
597 sha256 = "648001efe5d5c0102d8cea768e348da85d90af8ba91f0bea908f157951493cd4",
598 type = "tar.gz",
599 urls = ["https://crates.io/api/v1/crates/os_str_bytes/6.2.0/download"],
600 strip_prefix = "os_str_bytes-6.2.0",
601 build_file = Label("@rules_rust//tools/rust_analyzer/3rdparty/crates:BUILD.os_str_bytes-6.2.0.bazel"),
602 )
603
604 maybe(
605 http_archive,
606 name = "rules_rust_rust_analyzer__proc-macro-error-1.0.4",
607 sha256 = "da25490ff9892aab3fcf7c36f08cfb902dd3e71ca0f9f9517bea02a73a5ce38c",
608 type = "tar.gz",
609 urls = ["https://crates.io/api/v1/crates/proc-macro-error/1.0.4/download"],
610 strip_prefix = "proc-macro-error-1.0.4",
611 build_file = Label("@rules_rust//tools/rust_analyzer/3rdparty/crates:BUILD.proc-macro-error-1.0.4.bazel"),
612 )
613
614 maybe(
615 http_archive,
616 name = "rules_rust_rust_analyzer__proc-macro-error-attr-1.0.4",
617 sha256 = "a1be40180e52ecc98ad80b184934baf3d0d29f979574e439af5a55274b35f869",
618 type = "tar.gz",
619 urls = ["https://crates.io/api/v1/crates/proc-macro-error-attr/1.0.4/download"],
620 strip_prefix = "proc-macro-error-attr-1.0.4",
621 build_file = Label("@rules_rust//tools/rust_analyzer/3rdparty/crates:BUILD.proc-macro-error-attr-1.0.4.bazel"),
622 )
623
624 maybe(
625 http_archive,
626 name = "rules_rust_rust_analyzer__proc-macro2-1.0.40",
627 sha256 = "dd96a1e8ed2596c337f8eae5f24924ec83f5ad5ab21ea8e455d3566c69fbcaf7",
628 type = "tar.gz",
629 urls = ["https://crates.io/api/v1/crates/proc-macro2/1.0.40/download"],
630 strip_prefix = "proc-macro2-1.0.40",
631 build_file = Label("@rules_rust//tools/rust_analyzer/3rdparty/crates:BUILD.proc-macro2-1.0.40.bazel"),
632 )
633
634 maybe(
635 http_archive,
636 name = "rules_rust_rust_analyzer__quote-1.0.20",
637 sha256 = "3bcdf212e9776fbcb2d23ab029360416bb1706b1aea2d1a5ba002727cbcab804",
638 type = "tar.gz",
639 urls = ["https://crates.io/api/v1/crates/quote/1.0.20/download"],
640 strip_prefix = "quote-1.0.20",
641 build_file = Label("@rules_rust//tools/rust_analyzer/3rdparty/crates:BUILD.quote-1.0.20.bazel"),
642 )
643
644 maybe(
645 http_archive,
646 name = "rules_rust_rust_analyzer__regex-1.6.0",
647 sha256 = "4c4eb3267174b8c6c2f654116623910a0fef09c4753f8dd83db29c48a0df988b",
648 type = "tar.gz",
649 urls = ["https://crates.io/api/v1/crates/regex/1.6.0/download"],
650 strip_prefix = "regex-1.6.0",
651 build_file = Label("@rules_rust//tools/rust_analyzer/3rdparty/crates:BUILD.regex-1.6.0.bazel"),
652 )
653
654 maybe(
655 http_archive,
656 name = "rules_rust_rust_analyzer__regex-syntax-0.6.27",
657 sha256 = "a3f87b73ce11b1619a3c6332f45341e0047173771e8b8b73f87bfeefb7b56244",
658 type = "tar.gz",
659 urls = ["https://crates.io/api/v1/crates/regex-syntax/0.6.27/download"],
660 strip_prefix = "regex-syntax-0.6.27",
661 build_file = Label("@rules_rust//tools/rust_analyzer/3rdparty/crates:BUILD.regex-syntax-0.6.27.bazel"),
662 )
663
664 maybe(
665 http_archive,
666 name = "rules_rust_rust_analyzer__ryu-1.0.10",
667 sha256 = "f3f6f92acf49d1b98f7a81226834412ada05458b7364277387724a237f062695",
668 type = "tar.gz",
669 urls = ["https://crates.io/api/v1/crates/ryu/1.0.10/download"],
670 strip_prefix = "ryu-1.0.10",
671 build_file = Label("@rules_rust//tools/rust_analyzer/3rdparty/crates:BUILD.ryu-1.0.10.bazel"),
672 )
673
674 maybe(
675 http_archive,
676 name = "rules_rust_rust_analyzer__serde-1.0.139",
677 sha256 = "0171ebb889e45aa68b44aee0859b3eede84c6f5f5c228e6f140c0b2a0a46cad6",
678 type = "tar.gz",
679 urls = ["https://crates.io/api/v1/crates/serde/1.0.139/download"],
680 strip_prefix = "serde-1.0.139",
681 build_file = Label("@rules_rust//tools/rust_analyzer/3rdparty/crates:BUILD.serde-1.0.139.bazel"),
682 )
683
684 maybe(
685 http_archive,
686 name = "rules_rust_rust_analyzer__serde_derive-1.0.139",
687 sha256 = "dc1d3230c1de7932af58ad8ffbe1d784bd55efd5a9d84ac24f69c72d83543dfb",
688 type = "tar.gz",
689 urls = ["https://crates.io/api/v1/crates/serde_derive/1.0.139/download"],
690 strip_prefix = "serde_derive-1.0.139",
691 build_file = Label("@rules_rust//tools/rust_analyzer/3rdparty/crates:BUILD.serde_derive-1.0.139.bazel"),
692 )
693
694 maybe(
695 http_archive,
696 name = "rules_rust_rust_analyzer__serde_json-1.0.82",
697 sha256 = "82c2c1fdcd807d1098552c5b9a36e425e42e9fbd7c6a37a8425f390f781f7fa7",
698 type = "tar.gz",
699 urls = ["https://crates.io/api/v1/crates/serde_json/1.0.82/download"],
700 strip_prefix = "serde_json-1.0.82",
701 build_file = Label("@rules_rust//tools/rust_analyzer/3rdparty/crates:BUILD.serde_json-1.0.82.bazel"),
702 )
703
704 maybe(
705 http_archive,
706 name = "rules_rust_rust_analyzer__strsim-0.10.0",
707 sha256 = "73473c0e59e6d5812c5dfe2a064a6444949f089e20eec9a2e5506596494e4623",
708 type = "tar.gz",
709 urls = ["https://crates.io/api/v1/crates/strsim/0.10.0/download"],
710 strip_prefix = "strsim-0.10.0",
711 build_file = Label("@rules_rust//tools/rust_analyzer/3rdparty/crates:BUILD.strsim-0.10.0.bazel"),
712 )
713
714 maybe(
715 http_archive,
716 name = "rules_rust_rust_analyzer__syn-1.0.98",
717 sha256 = "c50aef8a904de4c23c788f104b7dddc7d6f79c647c7c8ce4cc8f73eb0ca773dd",
718 type = "tar.gz",
719 urls = ["https://crates.io/api/v1/crates/syn/1.0.98/download"],
720 strip_prefix = "syn-1.0.98",
721 build_file = Label("@rules_rust//tools/rust_analyzer/3rdparty/crates:BUILD.syn-1.0.98.bazel"),
722 )
723
724 maybe(
725 http_archive,
726 name = "rules_rust_rust_analyzer__termcolor-1.1.3",
727 sha256 = "bab24d30b911b2376f3a13cc2cd443142f0c81dda04c118693e35b3835757755",
728 type = "tar.gz",
729 urls = ["https://crates.io/api/v1/crates/termcolor/1.1.3/download"],
730 strip_prefix = "termcolor-1.1.3",
731 build_file = Label("@rules_rust//tools/rust_analyzer/3rdparty/crates:BUILD.termcolor-1.1.3.bazel"),
732 )
733
734 maybe(
735 http_archive,
736 name = "rules_rust_rust_analyzer__textwrap-0.15.0",
737 sha256 = "b1141d4d61095b28419e22cb0bbf02755f5e54e0526f97f1e3d1d160e60885fb",
738 type = "tar.gz",
739 urls = ["https://crates.io/api/v1/crates/textwrap/0.15.0/download"],
740 strip_prefix = "textwrap-0.15.0",
741 build_file = Label("@rules_rust//tools/rust_analyzer/3rdparty/crates:BUILD.textwrap-0.15.0.bazel"),
742 )
743
744 maybe(
745 http_archive,
746 name = "rules_rust_rust_analyzer__unicode-ident-1.0.2",
747 sha256 = "15c61ba63f9235225a22310255a29b806b907c9b8c964bcbd0a2c70f3f2deea7",
748 type = "tar.gz",
749 urls = ["https://crates.io/api/v1/crates/unicode-ident/1.0.2/download"],
750 strip_prefix = "unicode-ident-1.0.2",
751 build_file = Label("@rules_rust//tools/rust_analyzer/3rdparty/crates:BUILD.unicode-ident-1.0.2.bazel"),
752 )
753
754 maybe(
755 http_archive,
756 name = "rules_rust_rust_analyzer__version_check-0.9.4",
757 sha256 = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f",
758 type = "tar.gz",
759 urls = ["https://crates.io/api/v1/crates/version_check/0.9.4/download"],
760 strip_prefix = "version_check-0.9.4",
761 build_file = Label("@rules_rust//tools/rust_analyzer/3rdparty/crates:BUILD.version_check-0.9.4.bazel"),
762 )
763
764 maybe(
765 http_archive,
766 name = "rules_rust_rust_analyzer__winapi-0.3.9",
767 sha256 = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419",
768 type = "tar.gz",
769 urls = ["https://crates.io/api/v1/crates/winapi/0.3.9/download"],
770 strip_prefix = "winapi-0.3.9",
771 build_file = Label("@rules_rust//tools/rust_analyzer/3rdparty/crates:BUILD.winapi-0.3.9.bazel"),
772 )
773
774 maybe(
775 http_archive,
776 name = "rules_rust_rust_analyzer__winapi-i686-pc-windows-gnu-0.4.0",
777 sha256 = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6",
778 type = "tar.gz",
779 urls = ["https://crates.io/api/v1/crates/winapi-i686-pc-windows-gnu/0.4.0/download"],
780 strip_prefix = "winapi-i686-pc-windows-gnu-0.4.0",
781 build_file = Label("@rules_rust//tools/rust_analyzer/3rdparty/crates:BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel"),
782 )
783
784 maybe(
785 http_archive,
786 name = "rules_rust_rust_analyzer__winapi-util-0.1.5",
787 sha256 = "70ec6ce85bb158151cae5e5c87f95a8e97d2c0c4b001223f33a334e3ce5de178",
788 type = "tar.gz",
789 urls = ["https://crates.io/api/v1/crates/winapi-util/0.1.5/download"],
790 strip_prefix = "winapi-util-0.1.5",
791 build_file = Label("@rules_rust//tools/rust_analyzer/3rdparty/crates:BUILD.winapi-util-0.1.5.bazel"),
792 )
793
794 maybe(
795 http_archive,
796 name = "rules_rust_rust_analyzer__winapi-x86_64-pc-windows-gnu-0.4.0",
797 sha256 = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f",
798 type = "tar.gz",
799 urls = ["https://crates.io/api/v1/crates/winapi-x86_64-pc-windows-gnu/0.4.0/download"],
800 strip_prefix = "winapi-x86_64-pc-windows-gnu-0.4.0",
801 build_file = Label("@rules_rust//tools/rust_analyzer/3rdparty/crates:BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel"),
802 )