2021-02-01 14:06:05 +00:00
|
|
|
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
|
|
|
],
|
|
|
|
)
|
|
|
|
|
2022-04-26 21:20:06 +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"
|
2021-07-01 00:30:03 +00:00
|
|
|
|
2022-04-26 21:20:06 +00:00
|
|
|
rules_rust_dependencies()
|
|
|
|
|
|
|
|
rust_register_toolchains(
|
2022-04-11 02:12:16 +00:00
|
|
|
version = RUST_VERSION,
|
|
|
|
)
|
2020-10-09 23:28:06 +00:00
|
|
|
|
2021-07-01 00:30:03 +00:00
|
|
|
load("//tools/bazel:vendor.bzl", "vendor")
|
|
|
|
|
2020-10-09 23:28:06 +00:00
|
|
|
vendor(
|
|
|
|
name = "third-party",
|
2021-07-01 00:30:03 +00:00
|
|
|
cargo_version = RUST_VERSION,
|
2022-04-26 01:25:51 +00:00
|
|
|
lockfile = "//third-party:Cargo.lock",
|
2020-10-09 23:28:06 +00:00
|
|
|
)
|