• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1workspace(name = "cxx.rs")
2
3load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
4
5http_archive(
6    name = "rules_rust",
7    sha256 = "697a6f4f2adbd1b00f792346d6eca4cd45f691be63069c7d7ebf4fcf82a377a8",
8    strip_prefix = "rules_rust-8bad4c5e4e53d9f6f8d4d5228e26a44d92f37ab2",
9    urls = [
10        # Master branch as of 2021-04-11
11        "https://github.com/bazelbuild/rules_rust/archive/8bad4c5e4e53d9f6f8d4d5228e26a44d92f37ab2.tar.gz",
12    ],
13)
14
15load("@rules_rust//rust:repositories.bzl", "rust_repositories")
16
17RUST_VERSION = "1.54.0"
18
19rust_repositories(
20    edition = "2018",
21    version = RUST_VERSION,
22)
23
24load("//tools/bazel:vendor.bzl", "vendor")
25
26vendor(
27    name = "third-party",
28    lockfile = "//third-party:Cargo.lock",
29    cargo_version = RUST_VERSION,
30)
31