blob: d62b5ddabf6cd740b73ac4d0fd6922dcd518e0cb [file] [log] [blame]
David Tolnayc19936c2020-02-22 11:48:47 -08001load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
2
3http_archive(
4 name = "io_bazel_rules_rust",
David Tolnaydd247192020-07-30 22:26:52 -07005 sha256 = "5ed804fcd10a506a5b8e9e59bc6b3b7f43bc30c87ce4670e6f78df43604894fd",
6 strip_prefix = "rules_rust-fdf9655ba95616e0314b4e0ebab40bb0c5fe005c",
7 # Master branch as of 2020-07-30
8 url = "https://github.com/bazelbuild/rules_rust/archive/fdf9655ba95616e0314b4e0ebab40bb0c5fe005c.tar.gz",
David Tolnayc19936c2020-02-22 11:48:47 -08009)
10
11http_archive(
12 name = "bazel_skylib",
13 sha256 = "97e70364e9249702246c0e9444bccdc4b847bed1eb03c5a3ece4f83dfe6abc44",
14 urls = [
15 "https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.0.2/bazel-skylib-1.0.2.tar.gz",
16 "https://github.com/bazelbuild/bazel-skylib/releases/download/1.0.2/bazel-skylib-1.0.2.tar.gz",
17 ],
18)
19
20load("@io_bazel_rules_rust//:workspace.bzl", "bazel_version")
21
22bazel_version(name = "bazel_version")
23
24load("@io_bazel_rules_rust//rust:repositories.bzl", "rust_repository_set")
25
26rust_repository_set(
David Tolnay5a4d53a2020-10-08 20:36:47 -070027 name = "rust_1_47_linux",
David Tolnayc19936c2020-02-22 11:48:47 -080028 exec_triple = "x86_64-unknown-linux-gnu",
David Tolnay5a4d53a2020-10-08 20:36:47 -070029 version = "1.47.0",
David Tolnayc19936c2020-02-22 11:48:47 -080030)
David Tolnayc6244692020-02-22 18:51:30 -080031
32rust_repository_set(
David Tolnay5a4d53a2020-10-08 20:36:47 -070033 name = "rust_1_47_darwin",
David Tolnayc6244692020-02-22 18:51:30 -080034 exec_triple = "x86_64-apple-darwin",
David Tolnay5a4d53a2020-10-08 20:36:47 -070035 version = "1.47.0",
David Tolnayc6244692020-02-22 18:51:30 -080036)