load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "io_bazel_rules_rust", sha256 = "3d3faa85e49ebf4d26c40075549a17739d636360064b94a9d481b37ace0add82", strip_prefix = "rules_rust-6e87304c834c30b9c9f585cad19f30e7045281d7", # Master branch as of 2020-02-22 url = "https://github.com/bazelbuild/rules_rust/archive/6e87304c834c30b9c9f585cad19f30e7045281d7.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_beta_linux", exec_triple = "x86_64-unknown-linux-gnu", extra_target_triples = [], iso_date = "2020-02-08", version = "beta", ) rust_repository_set( name = "rust_1_42_beta_darwin", exec_triple = "x86_64-apple-darwin", extra_target_triples = [], iso_date = "2020-02-08", version = "beta", )