Update rules_rust
Several changes I made in 971-Robot-Code first have been upstreamed,
including finished a few pieces that I now want to use.
Change-Id: Iac6317989c1d3a0c7886c7d4a5798c6dbcedf2a9
Signed-off-by: Brian Silverman <bsilver16384@gmail.com>
diff --git a/WORKSPACE b/WORKSPACE
index 185018c..16b62ef 100644
--- a/WORKSPACE
+++ b/WORKSPACE
@@ -834,14 +834,23 @@
urls = ["https://github.com/bazelbuild/rules_webtesting/releases/download/0.3.5/rules_webtesting.tar.gz"],
)
+http_archive(
+ name = "rules_rust_tinyjson",
+ build_file = "@rules_rust//util/process_wrapper:BUILD.tinyjson.bazel",
+ sha256 = "1a8304da9f9370f6a6f9020b7903b044aa9ce3470f300a1fba5bc77c78145a16",
+ strip_prefix = "tinyjson-2.3.0",
+ type = "tar.gz",
+ url = "https://crates.io/api/v1/crates/tinyjson/2.3.0/download",
+)
+
local_repository(
name = "rules_rust",
path = "third_party/rules_rust",
)
-load("@rules_rust//rust:repositories.bzl", "rust_toolchain_repository")
+load("@rules_rust//rust:repositories.bzl", "rust_repository_set")
-rust_toolchain_repository(
+rust_repository_set(
name = "rust",
allocator_library = "@//tools/rust:forward_allocator",
edition = "2021",
@@ -851,8 +860,8 @@
"armv7-unknown-linux-gnueabihf",
"aarch64-unknown-linux-gnu",
],
+ register_toolchain = False,
rustfmt_version = "1.62.0",
- toolchain_name_prefix = "toolchain_for",
version = "1.62.0",
)