fork/rules_rust

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

UebelAndreAdded bzlmod support to all extension rules. (#3037)a7aba2d0

main
1.1 KiB30 linesraw
1"""Definitions for loading transitive `@rules_rust_protobuf` dependencies"""
2
3load("@bazel_features//:deps.bzl", "bazel_features_deps")
4load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
5load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe")
6load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps")
7load("@rules_proto//proto:repositories.bzl", "rules_proto_dependencies")
8
9def rust_proto_protobuf_transitive_repositories():
10    """Load transitive dependencies of the `@rules_rust_protobuf` rules.
11
12    This macro should be called immediately after the `rust_protobuf_dependencies` macro.
13    """
14    rules_proto_dependencies()
15
16    bazel_features_deps()
17
18    maybe(
19        http_archive,
20        name = "zlib",
21        build_file = Label("//3rdparty:BUILD.zlib.bazel"),
22        sha256 = "c3e5e9fdd5004dcb542feda5ee4f0ff0744628baf8ed2dd5d66f8ca1197cb1a1",
23        strip_prefix = "zlib-1.2.11",
24        urls = [
25            "https://zlib.net/zlib-1.2.11.tar.gz",
26            "https://storage.googleapis.com/mirror.tensorflow.org/zlib.net/zlib-1.2.11.tar.gz",
27        ],
28    )
29
30    protobuf_deps()