forked from dtolnay/cxx
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathWORKSPACE
30 lines (23 loc) · 781 Bytes
/
WORKSPACE
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
workspace(name = "cxx.rs")
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust",
sha256 = "29fee78077bd8c6477bc895a47e6c759f92df0735ed60587e1da7b51f53d26eb",
strip_prefix = "rules_rust-23a4631cad819003642b1a148e458fe4ed2c54e1",
urls = [
# Main branch as of 2021-12-07
"https://github.com/bazelbuild/rules_rust/archive/23a4631cad819003642b1a148e458fe4ed2c54e1.tar.gz",
],
)
load("@rules_rust//rust:repositories.bzl", "rust_repositories")
RUST_VERSION = "1.57.0"
rust_repositories(
edition = "2018",
version = RUST_VERSION,
)
load("//tools/bazel:vendor.bzl", "vendor")
vendor(
name = "third-party",
lockfile = "//third-party:Cargo.lock",
cargo_version = RUST_VERSION,
)