Recommend redundant URLs for installation (#42)
See go/bazel-downloader for more information. This feature was made
possible by https://github.com/bazelbuild/bazel/commit/ed7ced0018dc5c5ebd6fc8afc7158037ac1df00d
diff --git a/README.md b/README.md
index 2356873..cf078d1 100644
--- a/README.md
+++ b/README.md
@@ -25,10 +25,14 @@
external repositories for the Rust toolchain:
```python
-git_repository(
+http_archive(
name = "io_bazel_rules_rust",
- remote = "https://github.com/bazelbuild/rules_rust.git",
- tag = "0.0.5",
+ sha256 = "aa7ad550e2960143835c6a7d3bbc29e313aedf89ea879e5465e97f5d6a19e7f5",
+ strip_prefix = "rules_rust-0.0.5",
+ urls = [
+ "http://bazel-mirror.storage.googleapis.com/github.com/bazelbuild/rules_rust/archive/0.0.5.tar.gz",
+ "https://github.com/bazelbuild/rules_rust/archive/0.0.5.tar.gz",
+ ],
)
load("@io_bazel_rules_rust//rust:rust.bzl", "rust_repositories")
diff --git a/rust/rust.bzl b/rust/rust.bzl
index 632a757..ecb123a 100644
--- a/rust/rust.bzl
+++ b/rust/rust.bzl
@@ -24,10 +24,14 @@
external repositories for the Rust toolchain:
```python
-git_repository(
+http_archive(
name = "io_bazel_rules_rust",
- remote = "https://github.com/bazelbuild/rules_rust.git",
- tag = "0.0.5",
+ sha256 = "aa7ad550e2960143835c6a7d3bbc29e313aedf89ea879e5465e97f5d6a19e7f5",
+ strip_prefix = "rules_rust-0.0.5",
+ urls = [
+ "http://bazel-mirror.storage.googleapis.com/github.com/bazelbuild/rules_rust/archive/0.0.5.tar.gz",
+ "https://github.com/bazelbuild/rules_rust/archive/0.0.5.tar.gz",
+ ],
)
load("@io_bazel_rules_rust//rust:rust.bzl", "rust_repositories")