From 0bfe41b27e3dd8a30ae383210d7af10c28a642ea Mon Sep 17 00:00:00 2001 From: Protobuf Team Bot Date: Thu, 10 Oct 2024 23:44:28 -0700 Subject: [PATCH] Remove rust toolchain registration This doesn't alleviate Bazel's problem. rules_rust are still fetched because they register toolchains themselves. However the change pushes into the direction, where I believe that only the owning module should be concerned with its toolchain registration and the toolchain selection should be controlled via a flag mechanism or similar. Removing the registration now, can alleviate problems in the future, when we figure out how to prevent unnecessary fetches. PiperOrigin-RevId: 684721071 --- MODULE.bazel | 8 -------- 1 file changed, 8 deletions(-) diff --git a/MODULE.bazel b/MODULE.bazel index e96b6907b94c7..98bdd72525310 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -128,14 +128,6 @@ pip = use_extension("@rules_python//python/extensions:pip.bzl", "pip") use_repo(pip, "pip_deps") -rust = use_extension("@rules_rust//rust:extensions.bzl", "rust") - -rust.toolchain(edition = "2021") - -use_repo(rust, "rust_toolchains") - -register_toolchains("@rust_toolchains//:all") - crate = use_extension("@rules_rust//crate_universe:extension.bzl", "crate") crate.spec(