2020-02-22 19:48:47 +00:00
|
|
|
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
|
2020-10-09 23:28:06 +00:00
|
|
|
load("//tools/bazel:vendor.bzl", "vendor")
|
2020-02-22 19:48:47 +00:00
|
|
|
|
|
|
|
http_archive(
|
|
|
|
name = "io_bazel_rules_rust",
|
2020-07-31 05:26:52 +00:00
|
|
|
sha256 = "5ed804fcd10a506a5b8e9e59bc6b3b7f43bc30c87ce4670e6f78df43604894fd",
|
|
|
|
strip_prefix = "rules_rust-fdf9655ba95616e0314b4e0ebab40bb0c5fe005c",
|
|
|
|
# Master branch as of 2020-07-30
|
|
|
|
url = "https://github.com/bazelbuild/rules_rust/archive/fdf9655ba95616e0314b4e0ebab40bb0c5fe005c.tar.gz",
|
2020-02-22 19:48:47 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
http_archive(
|
|
|
|
name = "bazel_skylib",
|
|
|
|
sha256 = "97e70364e9249702246c0e9444bccdc4b847bed1eb03c5a3ece4f83dfe6abc44",
|
|
|
|
urls = [
|
|
|
|
"https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.0.2/bazel-skylib-1.0.2.tar.gz",
|
|
|
|
"https://github.com/bazelbuild/bazel-skylib/releases/download/1.0.2/bazel-skylib-1.0.2.tar.gz",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
load("@io_bazel_rules_rust//:workspace.bzl", "bazel_version")
|
|
|
|
|
|
|
|
bazel_version(name = "bazel_version")
|
|
|
|
|
|
|
|
load("@io_bazel_rules_rust//rust:repositories.bzl", "rust_repository_set")
|
|
|
|
|
|
|
|
rust_repository_set(
|
2020-11-24 01:17:07 +00:00
|
|
|
name = "rust_1_48_linux",
|
2020-02-22 19:48:47 +00:00
|
|
|
exec_triple = "x86_64-unknown-linux-gnu",
|
2020-11-24 01:17:07 +00:00
|
|
|
version = "1.48.0",
|
2020-02-22 19:48:47 +00:00
|
|
|
)
|
2020-02-23 02:51:30 +00:00
|
|
|
|
|
|
|
rust_repository_set(
|
2020-11-24 01:17:07 +00:00
|
|
|
name = "rust_1_48_darwin",
|
2020-02-23 02:51:30 +00:00
|
|
|
exec_triple = "x86_64-apple-darwin",
|
2020-11-24 01:17:07 +00:00
|
|
|
version = "1.48.0",
|
2020-02-23 02:51:30 +00:00
|
|
|
)
|
2020-10-09 23:28:06 +00:00
|
|
|
|
|
|
|
vendor(
|
|
|
|
name = "third-party",
|
|
|
|
lockfile = "//third-party:Cargo.lock",
|
|
|
|
)
|