diff --git a/MODULE.bazel b/MODULE.bazel index 4ee6331b958b..07504be06f3a 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -21,7 +21,7 @@ bazel_dep(name = "rules_java", version = "9.6.1") bazel_dep(name = "rules_jvm_external", version = "7.0") bazel_dep(name = "rules_license", version = "1.0.0") bazel_dep(name = "rules_python", version = "2.2.0") # Keep this in sync with cmake/MODULE.bazel.in. # noqa -bazel_dep(name = "rules_rust", version = "0.71.2") # When upgrading, locally test that crate vendoring still works via `tools/workspace/crate_universe/upgrade.sh && bazel test //tools/install/libdrake/...`. +bazel_dep(name = "rules_rust", version = "0.72.0") # When upgrading, locally test that crate vendoring still works via `tools/workspace/crate_universe/upgrade.sh && bazel test //tools/install/libdrake/...`. bazel_dep(name = "rules_shell", version = "0.8.0") bazel_dep(name = "with_cfg.bzl", version = "1.0.0") diff --git a/tools/workspace/crate_universe/upgrade.sh b/tools/workspace/crate_universe/upgrade.sh index 485ef4e16955..466ab7f3e90d 100755 --- a/tools/workspace/crate_universe/upgrade.sh +++ b/tools/workspace/crate_universe/upgrade.sh @@ -12,10 +12,6 @@ cd $(dirname $(python3 -c 'import os; print(os.path.realpath("'"$0"'"))')) # custom to Drake, and handled separately below. bazel run :crate -- --repin=all -# Patch a rules_rust regression (bazelbuild/rules_rust#4132) that erroneously -# omits the repository name from the all_crate_deps label output. -perl -pi -e 's#Label\("(?!//tools)#Label("\@crate#g' lock/details/crates.bzl - # Fix the upgrade advice comments in the generated BUILD files. old_tool="bazel run @@//tools/workspace/crate_universe:crate" new_tool="tools/workspace/crate_universe/upgrade.sh"