From d40a19ef8cb670bdc7c2e8b89adaccba09a61333 Mon Sep 17 00:00:00 2001 From: Alex Eagle Date: Tue, 17 Sep 2024 10:46:54 -0700 Subject: [PATCH] chore: point to non-deprecated rustfmt See https://github.com/bazelbuild/rules_rust/pull/2703 --- example/tools/format/BUILD.bazel | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/example/tools/format/BUILD.bazel b/example/tools/format/BUILD.bazel index a6f44934..7c8e9829 100644 --- a/example/tools/format/BUILD.bazel +++ b/example/tools/format/BUILD.bazel @@ -73,7 +73,11 @@ format_multirun( markdown = ":prettier", protocol_buffer = "//tools/lint:buf", python = "@aspect_rules_lint//format:ruff", - rust = "@rules_rust//tools/rustfmt:upstream_rustfmt", + # Note, older rules_rust versions may need + # @rules_rust//tools/rustfmt:upstream_rustfmt + # which was later deprecated in + # https://github.com/bazelbuild/rules_rust/pull/2703 + rust = "@rules_rust//tools/upstream_wrapper:rustfmt", scala = ":scalafmt", shell = "@aspect_rules_lint//format:shfmt", sql = ":prettier",