Set up Rust linting and cargo-raze in CI
Change-Id: I4c7e603302a1033d5e5141466c4cc5a6131c6e35
Signed-off-by: Brian Silverman <bsilver16384@gmail.com>
diff --git a/tools/lint/BUILD b/tools/lint/BUILD
index 743c852..57d4e08 100644
--- a/tools/lint/BUILD
+++ b/tools/lint/BUILD
@@ -12,6 +12,17 @@
)
sh_binary(
+ name = "rustfmt",
+ srcs = ["rustfmt.sh"],
+ data = [
+ "@rust//:rustfmt",
+ ],
+ deps = [
+ "@bazel_tools//tools/bash/runfiles",
+ ],
+)
+
+sh_binary(
name = "buildifier",
srcs = ["buildifier.sh"],
data = [
@@ -44,9 +55,12 @@
":buildifier",
":gofmt",
":prettier",
+ ":rustfmt",
"//:gazelle-runner",
"//tools/go:mirror_go_repos",
"//tools/go:tweak_gazelle_go_deps",
+ "//tools/rust:tweak_cargo_raze_output",
+ "@cargo_raze//:raze",
"@go_sdk//:bin/go",
],
env = {