| load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") |
| |
| http_archive( |
| name = "io_bazel_rules_rust", |
| sha256 = "abc75a5b6c8eda46a3d141921841e3577e9707b32d4d5b5cc156f7b8b28631ad", |
| strip_prefix = "rules_rust-d97f99628439df8bec89f5b7bc439f9d43d1586b", |
| # Master branch as of 2020-03-07 |
| url = "https://github.com/bazelbuild/rules_rust/archive/d97f99628439df8bec89f5b7bc439f9d43d1586b.tar.gz", |
| ) |
| |
| 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( |
| name = "rust_1_42_linux", |
| exec_triple = "x86_64-unknown-linux-gnu", |
| extra_target_triples = [], |
| version = "1.42.0", |
| ) |
| |
| rust_repository_set( |
| name = "rust_1_42_darwin", |
| exec_triple = "x86_64-apple-darwin", |
| extra_target_triples = [], |
| version = "1.42.0", |
| ) |