fork/rules_rust

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

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

0.11.0
45.2 KiB1143 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"""
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            "grpc": "@rules_rust_proto__grpc-0.6.2//:grpc",
295            "grpc-compiler": "@rules_rust_proto__grpc-compiler-0.6.2//:grpc_compiler",
296            "log": "@rules_rust_proto__log-0.4.17//:log",
297            "protobuf": "@rules_rust_proto__protobuf-2.8.2//:protobuf",
298            "protobuf-codegen": "@rules_rust_proto__protobuf-codegen-2.8.2//:protobuf_codegen",
299            "tls-api": "@rules_rust_proto__tls-api-0.1.22//:tls_api",
300            "tls-api-stub": "@rules_rust_proto__tls-api-stub-0.1.22//:tls_api_stub",
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(all(any(target_arch = \"x86_64\", target_arch = \"aarch64\"), target_os = \"hermit\"))": [],
364    "cfg(any(target_os = \"redox\", unix, target_os = \"wasi\"))": ["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", "wasm32-wasi", "x86_64-apple-darwin", "x86_64-apple-ios", "x86_64-linux-android", "x86_64-unknown-freebsd", "x86_64-unknown-linux-gnu"],
365    "cfg(not(windows))": ["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", "riscv32imc-unknown-none-elf", "s390x-unknown-linux-gnu", "wasm32-unknown-unknown", "wasm32-wasi", "x86_64-apple-darwin", "x86_64-apple-ios", "x86_64-linux-android", "x86_64-unknown-freebsd", "x86_64-unknown-linux-gnu"],
366    "cfg(target_os = \"cloudabi\")": [],
367    "cfg(target_os = \"fuchsia\")": [],
368    "cfg(target_os = \"redox\")": [],
369    "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"],
370    "cfg(windows)": ["i686-pc-windows-msvc", "x86_64-pc-windows-msvc"],
371    "i686-pc-windows-gnu": [],
372    "x86_64-pc-windows-gnu": [],
373}
374
375###############################################################################
376
377def crate_repositories():
378    """A macro for defining repositories for all generated crates"""
379    maybe(
380        http_archive,
381        name = "rules_rust_proto__autocfg-1.1.0",
382        sha256 = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa",
383        type = "tar.gz",
384        urls = ["https://crates.io/api/v1/crates/autocfg/1.1.0/download"],
385        strip_prefix = "autocfg-1.1.0",
386        build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.autocfg-1.1.0.bazel"),
387    )
388
389    maybe(
390        http_archive,
391        name = "rules_rust_proto__base64-0.9.3",
392        sha256 = "489d6c0ed21b11d038c31b6ceccca973e65d73ba3bd8ecb9a2babf5546164643",
393        type = "tar.gz",
394        urls = ["https://crates.io/api/v1/crates/base64/0.9.3/download"],
395        strip_prefix = "base64-0.9.3",
396        build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.base64-0.9.3.bazel"),
397    )
398
399    maybe(
400        http_archive,
401        name = "rules_rust_proto__bitflags-1.3.2",
402        sha256 = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a",
403        type = "tar.gz",
404        urls = ["https://crates.io/api/v1/crates/bitflags/1.3.2/download"],
405        strip_prefix = "bitflags-1.3.2",
406        build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.bitflags-1.3.2.bazel"),
407    )
408
409    maybe(
410        http_archive,
411        name = "rules_rust_proto__byteorder-1.4.3",
412        sha256 = "14c189c53d098945499cdfa7ecc63567cf3886b3332b312a5b4585d8d3a6a610",
413        type = "tar.gz",
414        urls = ["https://crates.io/api/v1/crates/byteorder/1.4.3/download"],
415        strip_prefix = "byteorder-1.4.3",
416        build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.byteorder-1.4.3.bazel"),
417    )
418
419    maybe(
420        http_archive,
421        name = "rules_rust_proto__bytes-0.4.12",
422        sha256 = "206fdffcfa2df7cbe15601ef46c813fce0965eb3286db6b56c583b814b51c81c",
423        type = "tar.gz",
424        urls = ["https://crates.io/api/v1/crates/bytes/0.4.12/download"],
425        strip_prefix = "bytes-0.4.12",
426        build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.bytes-0.4.12.bazel"),
427    )
428
429    maybe(
430        http_archive,
431        name = "rules_rust_proto__cfg-if-0.1.10",
432        sha256 = "4785bdd1c96b2a846b2bd7cc02e86b6b3dbf14e7e53446c4f54c92a361040822",
433        type = "tar.gz",
434        urls = ["https://crates.io/api/v1/crates/cfg-if/0.1.10/download"],
435        strip_prefix = "cfg-if-0.1.10",
436        build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.cfg-if-0.1.10.bazel"),
437    )
438
439    maybe(
440        http_archive,
441        name = "rules_rust_proto__cfg-if-1.0.0",
442        sha256 = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd",
443        type = "tar.gz",
444        urls = ["https://crates.io/api/v1/crates/cfg-if/1.0.0/download"],
445        strip_prefix = "cfg-if-1.0.0",
446        build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.cfg-if-1.0.0.bazel"),
447    )
448
449    maybe(
450        http_archive,
451        name = "rules_rust_proto__cloudabi-0.0.3",
452        sha256 = "ddfc5b9aa5d4507acaf872de71051dfd0e309860e88966e1051e462a077aac4f",
453        type = "tar.gz",
454        urls = ["https://crates.io/api/v1/crates/cloudabi/0.0.3/download"],
455        strip_prefix = "cloudabi-0.0.3",
456        build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.cloudabi-0.0.3.bazel"),
457    )
458
459    maybe(
460        http_archive,
461        name = "rules_rust_proto__crossbeam-deque-0.7.4",
462        sha256 = "c20ff29ded3204c5106278a81a38f4b482636ed4fa1e6cfbeef193291beb29ed",
463        type = "tar.gz",
464        urls = ["https://crates.io/api/v1/crates/crossbeam-deque/0.7.4/download"],
465        strip_prefix = "crossbeam-deque-0.7.4",
466        build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.crossbeam-deque-0.7.4.bazel"),
467    )
468
469    maybe(
470        http_archive,
471        name = "rules_rust_proto__crossbeam-epoch-0.8.2",
472        sha256 = "058ed274caafc1f60c4997b5fc07bf7dc7cca454af7c6e81edffe5f33f70dace",
473        type = "tar.gz",
474        urls = ["https://crates.io/api/v1/crates/crossbeam-epoch/0.8.2/download"],
475        strip_prefix = "crossbeam-epoch-0.8.2",
476        build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.crossbeam-epoch-0.8.2.bazel"),
477    )
478
479    maybe(
480        http_archive,
481        name = "rules_rust_proto__crossbeam-queue-0.2.3",
482        sha256 = "774ba60a54c213d409d5353bda12d49cd68d14e45036a285234c8d6f91f92570",
483        type = "tar.gz",
484        urls = ["https://crates.io/api/v1/crates/crossbeam-queue/0.2.3/download"],
485        strip_prefix = "crossbeam-queue-0.2.3",
486        build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.crossbeam-queue-0.2.3.bazel"),
487    )
488
489    maybe(
490        http_archive,
491        name = "rules_rust_proto__crossbeam-utils-0.7.2",
492        sha256 = "c3c7c73a2d1e9fc0886a08b93e98eb643461230d5f1925e4036204d5f2e261a8",
493        type = "tar.gz",
494        urls = ["https://crates.io/api/v1/crates/crossbeam-utils/0.7.2/download"],
495        strip_prefix = "crossbeam-utils-0.7.2",
496        build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.crossbeam-utils-0.7.2.bazel"),
497    )
498
499    maybe(
500        http_archive,
501        name = "rules_rust_proto__fnv-1.0.7",
502        sha256 = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1",
503        type = "tar.gz",
504        urls = ["https://crates.io/api/v1/crates/fnv/1.0.7/download"],
505        strip_prefix = "fnv-1.0.7",
506        build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.fnv-1.0.7.bazel"),
507    )
508
509    maybe(
510        http_archive,
511        name = "rules_rust_proto__fuchsia-zircon-0.3.3",
512        sha256 = "2e9763c69ebaae630ba35f74888db465e49e259ba1bc0eda7d06f4a067615d82",
513        type = "tar.gz",
514        urls = ["https://crates.io/api/v1/crates/fuchsia-zircon/0.3.3/download"],
515        strip_prefix = "fuchsia-zircon-0.3.3",
516        build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.fuchsia-zircon-0.3.3.bazel"),
517    )
518
519    maybe(
520        http_archive,
521        name = "rules_rust_proto__fuchsia-zircon-sys-0.3.3",
522        sha256 = "3dcaa9ae7725d12cdb85b3ad99a434db70b468c09ded17e012d86b5c1010f7a7",
523        type = "tar.gz",
524        urls = ["https://crates.io/api/v1/crates/fuchsia-zircon-sys/0.3.3/download"],
525        strip_prefix = "fuchsia-zircon-sys-0.3.3",
526        build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.fuchsia-zircon-sys-0.3.3.bazel"),
527    )
528
529    maybe(
530        http_archive,
531        name = "rules_rust_proto__futures-0.1.31",
532        sha256 = "3a471a38ef8ed83cd6e40aa59c1ffe17db6855c18e3604d9c4ed8c08ebc28678",
533        type = "tar.gz",
534        urls = ["https://crates.io/api/v1/crates/futures/0.1.31/download"],
535        strip_prefix = "futures-0.1.31",
536        build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.futures-0.1.31.bazel"),
537    )
538
539    maybe(
540        http_archive,
541        name = "rules_rust_proto__futures-cpupool-0.1.8",
542        sha256 = "ab90cde24b3319636588d0c35fe03b1333857621051837ed769faefb4c2162e4",
543        type = "tar.gz",
544        urls = ["https://crates.io/api/v1/crates/futures-cpupool/0.1.8/download"],
545        strip_prefix = "futures-cpupool-0.1.8",
546        build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.futures-cpupool-0.1.8.bazel"),
547    )
548
549    maybe(
550        http_archive,
551        name = "rules_rust_proto__grpc-0.6.2",
552        sha256 = "2aaf1d741fe6f3413f1f9f71b99f5e4e26776d563475a8a53ce53a73a8534c1d",
553        type = "tar.gz",
554        urls = ["https://crates.io/api/v1/crates/grpc/0.6.2/download"],
555        strip_prefix = "grpc-0.6.2",
556        build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.grpc-0.6.2.bazel"),
557    )
558
559    maybe(
560        http_archive,
561        name = "rules_rust_proto__grpc-compiler-0.6.2",
562        sha256 = "907274ce8ee7b40a0d0b0db09022ea22846a47cfb1fc8ad2c983c70001b4ffb1",
563        type = "tar.gz",
564        urls = ["https://crates.io/api/v1/crates/grpc-compiler/0.6.2/download"],
565        strip_prefix = "grpc-compiler-0.6.2",
566        build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.grpc-compiler-0.6.2.bazel"),
567    )
568
569    maybe(
570        http_archive,
571        name = "rules_rust_proto__hermit-abi-0.1.19",
572        sha256 = "62b467343b94ba476dcb2500d242dadbb39557df889310ac77c5d99100aaac33",
573        type = "tar.gz",
574        urls = ["https://crates.io/api/v1/crates/hermit-abi/0.1.19/download"],
575        strip_prefix = "hermit-abi-0.1.19",
576        build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.hermit-abi-0.1.19.bazel"),
577    )
578
579    maybe(
580        http_archive,
581        name = "rules_rust_proto__httpbis-0.7.0",
582        sha256 = "7689cfa896b2a71da4f16206af167542b75d242b6906313e53857972a92d5614",
583        type = "tar.gz",
584        urls = ["https://crates.io/api/v1/crates/httpbis/0.7.0/download"],
585        strip_prefix = "httpbis-0.7.0",
586        build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.httpbis-0.7.0.bazel"),
587    )
588
589    maybe(
590        http_archive,
591        name = "rules_rust_proto__iovec-0.1.4",
592        sha256 = "b2b3ea6ff95e175473f8ffe6a7eb7c00d054240321b84c57051175fe3c1e075e",
593        type = "tar.gz",
594        urls = ["https://crates.io/api/v1/crates/iovec/0.1.4/download"],
595        strip_prefix = "iovec-0.1.4",
596        build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.iovec-0.1.4.bazel"),
597    )
598
599    maybe(
600        http_archive,
601        name = "rules_rust_proto__kernel32-sys-0.2.2",
602        sha256 = "7507624b29483431c0ba2d82aece8ca6cdba9382bff4ddd0f7490560c056098d",
603        type = "tar.gz",
604        urls = ["https://crates.io/api/v1/crates/kernel32-sys/0.2.2/download"],
605        strip_prefix = "kernel32-sys-0.2.2",
606        build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.kernel32-sys-0.2.2.bazel"),
607    )
608
609    maybe(
610        http_archive,
611        name = "rules_rust_proto__lazy_static-1.4.0",
612        sha256 = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646",
613        type = "tar.gz",
614        urls = ["https://crates.io/api/v1/crates/lazy_static/1.4.0/download"],
615        strip_prefix = "lazy_static-1.4.0",
616        build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.lazy_static-1.4.0.bazel"),
617    )
618
619    maybe(
620        http_archive,
621        name = "rules_rust_proto__libc-0.2.126",
622        sha256 = "349d5a591cd28b49e1d1037471617a32ddcda5731b99419008085f72d5a53836",
623        type = "tar.gz",
624        urls = ["https://crates.io/api/v1/crates/libc/0.2.126/download"],
625        strip_prefix = "libc-0.2.126",
626        build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.libc-0.2.126.bazel"),
627    )
628
629    maybe(
630        http_archive,
631        name = "rules_rust_proto__lock_api-0.3.4",
632        sha256 = "c4da24a77a3d8a6d4862d95f72e6fdb9c09a643ecdb402d754004a557f2bec75",
633        type = "tar.gz",
634        urls = ["https://crates.io/api/v1/crates/lock_api/0.3.4/download"],
635        strip_prefix = "lock_api-0.3.4",
636        build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.lock_api-0.3.4.bazel"),
637    )
638
639    maybe(
640        http_archive,
641        name = "rules_rust_proto__log-0.3.9",
642        sha256 = "e19e8d5c34a3e0e2223db8e060f9e8264aeeb5c5fc64a4ee9965c062211c024b",
643        type = "tar.gz",
644        urls = ["https://crates.io/api/v1/crates/log/0.3.9/download"],
645        strip_prefix = "log-0.3.9",
646        build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.log-0.3.9.bazel"),
647    )
648
649    maybe(
650        http_archive,
651        name = "rules_rust_proto__log-0.4.17",
652        sha256 = "abb12e687cfb44aa40f41fc3978ef76448f9b6038cad6aef4259d3c095a2382e",
653        type = "tar.gz",
654        urls = ["https://crates.io/api/v1/crates/log/0.4.17/download"],
655        strip_prefix = "log-0.4.17",
656        build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.log-0.4.17.bazel"),
657    )
658
659    maybe(
660        http_archive,
661        name = "rules_rust_proto__maybe-uninit-2.0.0",
662        sha256 = "60302e4db3a61da70c0cb7991976248362f30319e88850c487b9b95bbf059e00",
663        type = "tar.gz",
664        urls = ["https://crates.io/api/v1/crates/maybe-uninit/2.0.0/download"],
665        strip_prefix = "maybe-uninit-2.0.0",
666        build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.maybe-uninit-2.0.0.bazel"),
667    )
668
669    maybe(
670        http_archive,
671        name = "rules_rust_proto__memoffset-0.5.6",
672        sha256 = "043175f069eda7b85febe4a74abbaeff828d9f8b448515d3151a14a3542811aa",
673        type = "tar.gz",
674        urls = ["https://crates.io/api/v1/crates/memoffset/0.5.6/download"],
675        strip_prefix = "memoffset-0.5.6",
676        build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.memoffset-0.5.6.bazel"),
677    )
678
679    maybe(
680        http_archive,
681        name = "rules_rust_proto__mio-0.6.23",
682        sha256 = "4afd66f5b91bf2a3bc13fad0e21caedac168ca4c707504e75585648ae80e4cc4",
683        type = "tar.gz",
684        urls = ["https://crates.io/api/v1/crates/mio/0.6.23/download"],
685        strip_prefix = "mio-0.6.23",
686        build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.mio-0.6.23.bazel"),
687    )
688
689    maybe(
690        http_archive,
691        name = "rules_rust_proto__mio-uds-0.6.8",
692        sha256 = "afcb699eb26d4332647cc848492bbc15eafb26f08d0304550d5aa1f612e066f0",
693        type = "tar.gz",
694        urls = ["https://crates.io/api/v1/crates/mio-uds/0.6.8/download"],
695        strip_prefix = "mio-uds-0.6.8",
696        build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.mio-uds-0.6.8.bazel"),
697    )
698
699    maybe(
700        http_archive,
701        name = "rules_rust_proto__miow-0.2.2",
702        sha256 = "ebd808424166322d4a38da87083bfddd3ac4c131334ed55856112eb06d46944d",
703        type = "tar.gz",
704        urls = ["https://crates.io/api/v1/crates/miow/0.2.2/download"],
705        strip_prefix = "miow-0.2.2",
706        build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.miow-0.2.2.bazel"),
707    )
708
709    maybe(
710        http_archive,
711        name = "rules_rust_proto__net2-0.2.37",
712        sha256 = "391630d12b68002ae1e25e8f974306474966550ad82dac6886fb8910c19568ae",
713        type = "tar.gz",
714        urls = ["https://crates.io/api/v1/crates/net2/0.2.37/download"],
715        strip_prefix = "net2-0.2.37",
716        build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.net2-0.2.37.bazel"),
717    )
718
719    maybe(
720        http_archive,
721        name = "rules_rust_proto__num_cpus-1.13.1",
722        sha256 = "19e64526ebdee182341572e50e9ad03965aa510cd94427a4549448f285e957a1",
723        type = "tar.gz",
724        urls = ["https://crates.io/api/v1/crates/num_cpus/1.13.1/download"],
725        strip_prefix = "num_cpus-1.13.1",
726        build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.num_cpus-1.13.1.bazel"),
727    )
728
729    maybe(
730        http_archive,
731        name = "rules_rust_proto__parking_lot-0.9.0",
732        sha256 = "f842b1982eb6c2fe34036a4fbfb06dd185a3f5c8edfaacdf7d1ea10b07de6252",
733        type = "tar.gz",
734        urls = ["https://crates.io/api/v1/crates/parking_lot/0.9.0/download"],
735        strip_prefix = "parking_lot-0.9.0",
736        build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.parking_lot-0.9.0.bazel"),
737    )
738
739    maybe(
740        http_archive,
741        name = "rules_rust_proto__parking_lot_core-0.6.2",
742        sha256 = "b876b1b9e7ac6e1a74a6da34d25c42e17e8862aa409cbbbdcfc8d86c6f3bc62b",
743        type = "tar.gz",
744        urls = ["https://crates.io/api/v1/crates/parking_lot_core/0.6.2/download"],
745        strip_prefix = "parking_lot_core-0.6.2",
746        build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.parking_lot_core-0.6.2.bazel"),
747    )
748
749    maybe(
750        http_archive,
751        name = "rules_rust_proto__protobuf-2.8.2",
752        patch_args = [
753            "-p1",
754        ],
755        patches = [
756            "@rules_rust//proto/3rdparty/patches:protobuf-2.8.2.patch",
757        ],
758        sha256 = "70731852eec72c56d11226c8a5f96ad5058a3dab73647ca5f7ee351e464f2571",
759        type = "tar.gz",
760        urls = ["https://crates.io/api/v1/crates/protobuf/2.8.2/download"],
761        strip_prefix = "protobuf-2.8.2",
762        build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.protobuf-2.8.2.bazel"),
763    )
764
765    maybe(
766        http_archive,
767        name = "rules_rust_proto__protobuf-codegen-2.8.2",
768        sha256 = "3d74b9cbbf2ac9a7169c85a3714ec16c51ee9ec7cfd511549527e9a7df720795",
769        type = "tar.gz",
770        urls = ["https://crates.io/api/v1/crates/protobuf-codegen/2.8.2/download"],
771        strip_prefix = "protobuf-codegen-2.8.2",
772        build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.protobuf-codegen-2.8.2.bazel"),
773    )
774
775    maybe(
776        http_archive,
777        name = "rules_rust_proto__redox_syscall-0.1.57",
778        sha256 = "41cc0f7e4d5d4544e8861606a285bb08d3e70712ccc7d2b84d7c0ccfaf4b05ce",
779        type = "tar.gz",
780        urls = ["https://crates.io/api/v1/crates/redox_syscall/0.1.57/download"],
781        strip_prefix = "redox_syscall-0.1.57",
782        build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.redox_syscall-0.1.57.bazel"),
783    )
784
785    maybe(
786        http_archive,
787        name = "rules_rust_proto__rustc_version-0.2.3",
788        sha256 = "138e3e0acb6c9fb258b19b67cb8abd63c00679d2851805ea151465464fe9030a",
789        type = "tar.gz",
790        urls = ["https://crates.io/api/v1/crates/rustc_version/0.2.3/download"],
791        strip_prefix = "rustc_version-0.2.3",
792        build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.rustc_version-0.2.3.bazel"),
793    )
794
795    maybe(
796        http_archive,
797        name = "rules_rust_proto__safemem-0.3.3",
798        sha256 = "ef703b7cb59335eae2eb93ceb664c0eb7ea6bf567079d843e09420219668e072",
799        type = "tar.gz",
800        urls = ["https://crates.io/api/v1/crates/safemem/0.3.3/download"],
801        strip_prefix = "safemem-0.3.3",
802        build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.safemem-0.3.3.bazel"),
803    )
804
805    maybe(
806        http_archive,
807        name = "rules_rust_proto__scoped-tls-0.1.2",
808        sha256 = "332ffa32bf586782a3efaeb58f127980944bbc8c4d6913a86107ac2a5ab24b28",
809        type = "tar.gz",
810        urls = ["https://crates.io/api/v1/crates/scoped-tls/0.1.2/download"],
811        strip_prefix = "scoped-tls-0.1.2",
812        build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.scoped-tls-0.1.2.bazel"),
813    )
814
815    maybe(
816        http_archive,
817        name = "rules_rust_proto__scopeguard-1.1.0",
818        sha256 = "d29ab0c6d3fc0ee92fe66e2d99f700eab17a8d57d1c1d3b748380fb20baa78cd",
819        type = "tar.gz",
820        urls = ["https://crates.io/api/v1/crates/scopeguard/1.1.0/download"],
821        strip_prefix = "scopeguard-1.1.0",
822        build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.scopeguard-1.1.0.bazel"),
823    )
824
825    maybe(
826        http_archive,
827        name = "rules_rust_proto__semver-0.9.0",
828        sha256 = "1d7eb9ef2c18661902cc47e535f9bc51b78acd254da71d375c2f6720d9a40403",
829        type = "tar.gz",
830        urls = ["https://crates.io/api/v1/crates/semver/0.9.0/download"],
831        strip_prefix = "semver-0.9.0",
832        build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.semver-0.9.0.bazel"),
833    )
834
835    maybe(
836        http_archive,
837        name = "rules_rust_proto__semver-parser-0.7.0",
838        sha256 = "388a1df253eca08550bef6c72392cfe7c30914bf41df5269b68cbd6ff8f570a3",
839        type = "tar.gz",
840        urls = ["https://crates.io/api/v1/crates/semver-parser/0.7.0/download"],
841        strip_prefix = "semver-parser-0.7.0",
842        build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.semver-parser-0.7.0.bazel"),
843    )
844
845    maybe(
846        http_archive,
847        name = "rules_rust_proto__slab-0.3.0",
848        sha256 = "17b4fcaed89ab08ef143da37bc52adbcc04d4a69014f4c1208d6b51f0c47bc23",
849        type = "tar.gz",
850        urls = ["https://crates.io/api/v1/crates/slab/0.3.0/download"],
851        strip_prefix = "slab-0.3.0",
852        build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.slab-0.3.0.bazel"),
853    )
854
855    maybe(
856        http_archive,
857        name = "rules_rust_proto__slab-0.4.7",
858        sha256 = "4614a76b2a8be0058caa9dbbaf66d988527d86d003c11a94fbd335d7661edcef",
859        type = "tar.gz",
860        urls = ["https://crates.io/api/v1/crates/slab/0.4.7/download"],
861        strip_prefix = "slab-0.4.7",
862        build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.slab-0.4.7.bazel"),
863    )
864
865    maybe(
866        http_archive,
867        name = "rules_rust_proto__smallvec-0.6.14",
868        sha256 = "b97fcaeba89edba30f044a10c6a3cc39df9c3f17d7cd829dd1446cab35f890e0",
869        type = "tar.gz",
870        urls = ["https://crates.io/api/v1/crates/smallvec/0.6.14/download"],
871        strip_prefix = "smallvec-0.6.14",
872        build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.smallvec-0.6.14.bazel"),
873    )
874
875    maybe(
876        http_archive,
877        name = "rules_rust_proto__tls-api-0.1.22",
878        sha256 = "049c03787a0595182357fbd487577947f4351b78ce20c3668f6d49f17feb13d1",
879        type = "tar.gz",
880        urls = ["https://crates.io/api/v1/crates/tls-api/0.1.22/download"],
881        strip_prefix = "tls-api-0.1.22",
882        build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.tls-api-0.1.22.bazel"),
883    )
884
885    maybe(
886        http_archive,
887        name = "rules_rust_proto__tls-api-stub-0.1.22",
888        sha256 = "c9a0cc8c149724db9de7d73a0e1bc80b1a74f5394f08c6f301e11f9c35fa061e",
889        type = "tar.gz",
890        urls = ["https://crates.io/api/v1/crates/tls-api-stub/0.1.22/download"],
891        strip_prefix = "tls-api-stub-0.1.22",
892        build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.tls-api-stub-0.1.22.bazel"),
893    )
894
895    maybe(
896        http_archive,
897        name = "rules_rust_proto__tokio-0.1.22",
898        sha256 = "5a09c0b5bb588872ab2f09afa13ee6e9dac11e10a0ec9e8e3ba39a5a5d530af6",
899        type = "tar.gz",
900        urls = ["https://crates.io/api/v1/crates/tokio/0.1.22/download"],
901        strip_prefix = "tokio-0.1.22",
902        build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.tokio-0.1.22.bazel"),
903    )
904
905    maybe(
906        http_archive,
907        name = "rules_rust_proto__tokio-codec-0.1.2",
908        sha256 = "25b2998660ba0e70d18684de5d06b70b70a3a747469af9dea7618cc59e75976b",
909        type = "tar.gz",
910        urls = ["https://crates.io/api/v1/crates/tokio-codec/0.1.2/download"],
911        strip_prefix = "tokio-codec-0.1.2",
912        build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.tokio-codec-0.1.2.bazel"),
913    )
914
915    maybe(
916        http_archive,
917        name = "rules_rust_proto__tokio-core-0.1.18",
918        sha256 = "87b1395334443abca552f63d4f61d0486f12377c2ba8b368e523f89e828cffd4",
919        type = "tar.gz",
920        urls = ["https://crates.io/api/v1/crates/tokio-core/0.1.18/download"],
921        strip_prefix = "tokio-core-0.1.18",
922        build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.tokio-core-0.1.18.bazel"),
923    )
924
925    maybe(
926        http_archive,
927        name = "rules_rust_proto__tokio-current-thread-0.1.7",
928        sha256 = "b1de0e32a83f131e002238d7ccde18211c0a5397f60cbfffcb112868c2e0e20e",
929        type = "tar.gz",
930        urls = ["https://crates.io/api/v1/crates/tokio-current-thread/0.1.7/download"],
931        strip_prefix = "tokio-current-thread-0.1.7",
932        build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.tokio-current-thread-0.1.7.bazel"),
933    )
934
935    maybe(
936        http_archive,
937        name = "rules_rust_proto__tokio-executor-0.1.10",
938        sha256 = "fb2d1b8f4548dbf5e1f7818512e9c406860678f29c300cdf0ebac72d1a3a1671",
939        type = "tar.gz",
940        urls = ["https://crates.io/api/v1/crates/tokio-executor/0.1.10/download"],
941        strip_prefix = "tokio-executor-0.1.10",
942        build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.tokio-executor-0.1.10.bazel"),
943    )
944
945    maybe(
946        http_archive,
947        name = "rules_rust_proto__tokio-fs-0.1.7",
948        sha256 = "297a1206e0ca6302a0eed35b700d292b275256f596e2f3fea7729d5e629b6ff4",
949        type = "tar.gz",
950        urls = ["https://crates.io/api/v1/crates/tokio-fs/0.1.7/download"],
951        strip_prefix = "tokio-fs-0.1.7",
952        build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.tokio-fs-0.1.7.bazel"),
953    )
954
955    maybe(
956        http_archive,
957        name = "rules_rust_proto__tokio-io-0.1.13",
958        sha256 = "57fc868aae093479e3131e3d165c93b1c7474109d13c90ec0dda2a1bbfff0674",
959        type = "tar.gz",
960        urls = ["https://crates.io/api/v1/crates/tokio-io/0.1.13/download"],
961        strip_prefix = "tokio-io-0.1.13",
962        build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.tokio-io-0.1.13.bazel"),
963    )
964
965    maybe(
966        http_archive,
967        name = "rules_rust_proto__tokio-reactor-0.1.12",
968        sha256 = "09bc590ec4ba8ba87652da2068d150dcada2cfa2e07faae270a5e0409aa51351",
969        type = "tar.gz",
970        urls = ["https://crates.io/api/v1/crates/tokio-reactor/0.1.12/download"],
971        strip_prefix = "tokio-reactor-0.1.12",
972        build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.tokio-reactor-0.1.12.bazel"),
973    )
974
975    maybe(
976        http_archive,
977        name = "rules_rust_proto__tokio-sync-0.1.8",
978        sha256 = "edfe50152bc8164fcc456dab7891fa9bf8beaf01c5ee7e1dd43a397c3cf87dee",
979        type = "tar.gz",
980        urls = ["https://crates.io/api/v1/crates/tokio-sync/0.1.8/download"],
981        strip_prefix = "tokio-sync-0.1.8",
982        build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.tokio-sync-0.1.8.bazel"),
983    )
984
985    maybe(
986        http_archive,
987        name = "rules_rust_proto__tokio-tcp-0.1.4",
988        sha256 = "98df18ed66e3b72e742f185882a9e201892407957e45fbff8da17ae7a7c51f72",
989        type = "tar.gz",
990        urls = ["https://crates.io/api/v1/crates/tokio-tcp/0.1.4/download"],
991        strip_prefix = "tokio-tcp-0.1.4",
992        build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.tokio-tcp-0.1.4.bazel"),
993    )
994
995    maybe(
996        http_archive,
997        name = "rules_rust_proto__tokio-threadpool-0.1.18",
998        sha256 = "df720b6581784c118f0eb4310796b12b1d242a7eb95f716a8367855325c25f89",
999        type = "tar.gz",
1000        urls = ["https://crates.io/api/v1/crates/tokio-threadpool/0.1.18/download"],
1001        strip_prefix = "tokio-threadpool-0.1.18",
1002        build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.tokio-threadpool-0.1.18.bazel"),
1003    )
1004
1005    maybe(
1006        http_archive,
1007        name = "rules_rust_proto__tokio-timer-0.1.2",
1008        sha256 = "6131e780037787ff1b3f8aad9da83bca02438b72277850dd6ad0d455e0e20efc",
1009        type = "tar.gz",
1010        urls = ["https://crates.io/api/v1/crates/tokio-timer/0.1.2/download"],
1011        strip_prefix = "tokio-timer-0.1.2",
1012        build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.tokio-timer-0.1.2.bazel"),
1013    )
1014
1015    maybe(
1016        http_archive,
1017        name = "rules_rust_proto__tokio-timer-0.2.13",
1018        sha256 = "93044f2d313c95ff1cb7809ce9a7a05735b012288a888b62d4434fd58c94f296",
1019        type = "tar.gz",
1020        urls = ["https://crates.io/api/v1/crates/tokio-timer/0.2.13/download"],
1021        strip_prefix = "tokio-timer-0.2.13",
1022        build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.tokio-timer-0.2.13.bazel"),
1023    )
1024
1025    maybe(
1026        http_archive,
1027        name = "rules_rust_proto__tokio-tls-api-0.1.22",
1028        sha256 = "68d0e040d5b1f4cfca70ec4f371229886a5de5bb554d272a4a8da73004a7b2c9",
1029        type = "tar.gz",
1030        urls = ["https://crates.io/api/v1/crates/tokio-tls-api/0.1.22/download"],
1031        strip_prefix = "tokio-tls-api-0.1.22",
1032        build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.tokio-tls-api-0.1.22.bazel"),
1033    )
1034
1035    maybe(
1036        http_archive,
1037        name = "rules_rust_proto__tokio-udp-0.1.6",
1038        sha256 = "e2a0b10e610b39c38b031a2fcab08e4b82f16ece36504988dcbd81dbba650d82",
1039        type = "tar.gz",
1040        urls = ["https://crates.io/api/v1/crates/tokio-udp/0.1.6/download"],
1041        strip_prefix = "tokio-udp-0.1.6",
1042        build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.tokio-udp-0.1.6.bazel"),
1043    )
1044
1045    maybe(
1046        http_archive,
1047        name = "rules_rust_proto__tokio-uds-0.1.7",
1048        sha256 = "65ae5d255ce739e8537221ed2942e0445f4b3b813daebac1c0050ddaaa3587f9",
1049        type = "tar.gz",
1050        urls = ["https://crates.io/api/v1/crates/tokio-uds/0.1.7/download"],
1051        strip_prefix = "tokio-uds-0.1.7",
1052        build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.tokio-uds-0.1.7.bazel"),
1053    )
1054
1055    maybe(
1056        http_archive,
1057        name = "rules_rust_proto__tokio-uds-0.2.7",
1058        sha256 = "ab57a4ac4111c8c9dbcf70779f6fc8bc35ae4b2454809febac840ad19bd7e4e0",
1059        type = "tar.gz",
1060        urls = ["https://crates.io/api/v1/crates/tokio-uds/0.2.7/download"],
1061        strip_prefix = "tokio-uds-0.2.7",
1062        build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.tokio-uds-0.2.7.bazel"),
1063    )
1064
1065    maybe(
1066        http_archive,
1067        name = "rules_rust_proto__unix_socket-0.5.0",
1068        sha256 = "6aa2700417c405c38f5e6902d699345241c28c0b7ade4abaad71e35a87eb1564",
1069        type = "tar.gz",
1070        urls = ["https://crates.io/api/v1/crates/unix_socket/0.5.0/download"],
1071        strip_prefix = "unix_socket-0.5.0",
1072        build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.unix_socket-0.5.0.bazel"),
1073    )
1074
1075    maybe(
1076        http_archive,
1077        name = "rules_rust_proto__void-1.0.2",
1078        sha256 = "6a02e4885ed3bc0f2de90ea6dd45ebcbb66dacffe03547fadbb0eeae2770887d",
1079        type = "tar.gz",
1080        urls = ["https://crates.io/api/v1/crates/void/1.0.2/download"],
1081        strip_prefix = "void-1.0.2",
1082        build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.void-1.0.2.bazel"),
1083    )
1084
1085    maybe(
1086        http_archive,
1087        name = "rules_rust_proto__winapi-0.2.8",
1088        sha256 = "167dc9d6949a9b857f3451275e911c3f44255842c1f7a76f33c55103a909087a",
1089        type = "tar.gz",
1090        urls = ["https://crates.io/api/v1/crates/winapi/0.2.8/download"],
1091        strip_prefix = "winapi-0.2.8",
1092        build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.winapi-0.2.8.bazel"),
1093    )
1094
1095    maybe(
1096        http_archive,
1097        name = "rules_rust_proto__winapi-0.3.9",
1098        sha256 = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419",
1099        type = "tar.gz",
1100        urls = ["https://crates.io/api/v1/crates/winapi/0.3.9/download"],
1101        strip_prefix = "winapi-0.3.9",
1102        build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.winapi-0.3.9.bazel"),
1103    )
1104
1105    maybe(
1106        http_archive,
1107        name = "rules_rust_proto__winapi-build-0.1.1",
1108        sha256 = "2d315eee3b34aca4797b2da6b13ed88266e6d612562a0c46390af8299fc699bc",
1109        type = "tar.gz",
1110        urls = ["https://crates.io/api/v1/crates/winapi-build/0.1.1/download"],
1111        strip_prefix = "winapi-build-0.1.1",
1112        build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.winapi-build-0.1.1.bazel"),
1113    )
1114
1115    maybe(
1116        http_archive,
1117        name = "rules_rust_proto__winapi-i686-pc-windows-gnu-0.4.0",
1118        sha256 = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6",
1119        type = "tar.gz",
1120        urls = ["https://crates.io/api/v1/crates/winapi-i686-pc-windows-gnu/0.4.0/download"],
1121        strip_prefix = "winapi-i686-pc-windows-gnu-0.4.0",
1122        build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel"),
1123    )
1124
1125    maybe(
1126        http_archive,
1127        name = "rules_rust_proto__winapi-x86_64-pc-windows-gnu-0.4.0",
1128        sha256 = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f",
1129        type = "tar.gz",
1130        urls = ["https://crates.io/api/v1/crates/winapi-x86_64-pc-windows-gnu/0.4.0/download"],
1131        strip_prefix = "winapi-x86_64-pc-windows-gnu-0.4.0",
1132        build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel"),
1133    )
1134
1135    maybe(
1136        http_archive,
1137        name = "rules_rust_proto__ws2_32-sys-0.2.1",
1138        sha256 = "d59cefebd0c892fa2dd6de581e937301d8552cb44489cdff035c6187cb63fa5e",
1139        type = "tar.gz",
1140        urls = ["https://crates.io/api/v1/crates/ws2_32-sys/0.2.1/download"],
1141        strip_prefix = "ws2_32-sys-0.2.1",
1142        build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.ws2_32-sys-0.2.1.bazel"),
1143    )