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
pull/18795/head
Protobuf Team Bot 6 months ago committed by Copybara-Service
parent 9c4f3b817e
commit 0bfe41b27e
  1. 8
      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(

Loading…
Cancel
Save