fork/rules_rust

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

UebelAndreReplaced `crates_universe` rule with `crates_repository` (#1158)59fab4e7

0.8.0
1.1 KiB28 linesraw
1"""Third party dependencies of `cargo-bazel`"""
2
3load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
4load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe")
5
6def third_party_deps():
7    maybe(
8        http_archive,
9        name = "zlib",
10        build_file = Label("//crate_universe/3rdparty:BUILD.zlib.bazel"),
11        sha256 = "c3e5e9fdd5004dcb542feda5ee4f0ff0744628baf8ed2dd5d66f8ca1197cb1a1",
12        strip_prefix = "zlib-1.2.11",
13        urls = [
14            "https://zlib.net/zlib-1.2.11.tar.gz",
15            "https://storage.googleapis.com/mirror.tensorflow.org/zlib.net/zlib-1.2.11.tar.gz",
16        ],
17    )
18
19    maybe(
20        http_archive,
21        name = "libgit2",
22        build_file = Label("//crate_universe/3rdparty:BUILD.libgit2.bazel"),
23        sha256 = "9051e75964350054d5e3f9339bc4d1fb56ac14949710e3860f98f07a0433fa25",
24        # The version here should match the version used with the Rust crate `libgit2-sys`
25        # https://github.com/rust-lang/git2-rs/tree/libgit2-sys-0.13.0/libgit2-sys
26        strip_prefix = "libgit2-1.4.0",
27        urls = ["https://github.com/libgit2/libgit2/archive/refs/tags/v1.4.0.tar.gz"],
28    )