third_party_rust_cxx/WORKSPACE

32 lines
827 B
Python
Raw Normal View History

workspace(name = "cxx.rs")
2020-02-22 19:48:47 +00:00
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
2021-01-27 15:38:17 +00:00
name = "rules_rust",
2022-04-27 21:39:15 +00:00
sha256 = "617082067629939c0a22f587811a3e822a50a203119a90380e21f5aec3373da9",
strip_prefix = "rules_rust-e07881fa22a5f0d16230d8b23bbff2bf358823b8",
2020-02-22 19:48:47 +00:00
urls = [
2022-04-27 21:39:15 +00:00
# Main branch as of 2022-04-27
"https://github.com/bazelbuild/rules_rust/archive/e07881fa22a5f0d16230d8b23bbff2bf358823b8.tar.gz",
2020-02-22 19:48:47 +00:00
],
)
load("@rules_rust//rust:repositories.bzl", "rules_rust_dependencies", "rust_register_toolchains")
2020-02-22 19:48:47 +00:00
2022-04-11 01:55:36 +00:00
RUST_VERSION = "1.60.0"
rules_rust_dependencies()
rust_register_toolchains(
version = RUST_VERSION,
)
load("//tools/bazel:vendor.bzl", "vendor")
vendor(
name = "third-party",
cargo_version = RUST_VERSION,
2022-04-26 01:25:51 +00:00
lockfile = "//third-party:Cargo.lock",
)