| """Third party dependencies of `cargo-bazel`""" |
| |
| load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") |
| load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") |
| |
| def third_party_deps(): |
| maybe( |
| http_archive, |
| name = "zlib", |
| build_file = Label("//crate_universe/3rdparty:BUILD.zlib.bazel"), |
| sha256 = "c3e5e9fdd5004dcb542feda5ee4f0ff0744628baf8ed2dd5d66f8ca1197cb1a1", |
| strip_prefix = "zlib-1.2.11", |
| urls = [ |
| "https://zlib.net/zlib-1.2.11.tar.gz", |
| "https://storage.googleapis.com/mirror.tensorflow.org/zlib.net/zlib-1.2.11.tar.gz", |
| ], |
| ) |
| |
| maybe( |
| http_archive, |
| name = "libgit2", |
| build_file = Label("//crate_universe/3rdparty:BUILD.libgit2.bazel"), |
| sha256 = "9051e75964350054d5e3f9339bc4d1fb56ac14949710e3860f98f07a0433fa25", |
| # The version here should match the version used with the Rust crate `libgit2-sys` |
| # https://github.com/rust-lang/git2-rs/tree/libgit2-sys-0.13.0/libgit2-sys |
| strip_prefix = "libgit2-1.4.0", |
| urls = ["https://github.com/libgit2/libgit2/archive/refs/tags/v1.4.0.tar.gz"], |
| ) |