Stop transitioning on `--use_target_platform_for_tests` on Bazel 10+ (#4404) Bazel 10 moved `--use_target_platform_for_tests` to the command line graveyard, so it is no longer a valid Starlark transition output and `collector_platform_test` fails analysis on rolling: ``` transition outputs [//command_line_option:use_target_platform_for_tests] do not correspond to valid settings ``` This change only sets the flag on Bazel versions without the default test toolchain. From Bazel 9 the test already enables `incompatible_use_default_test_toolchain`, which selects the test execution platform on its own, and `False` was the default everywhere, so 7.4.1 and 8.x are unchanged. Verified with `bazel test //test/unit/coverage/...` on 9.3.2 and rolling (`11.0.0-pre.20261028.2`). https://github.com/bazelbuild/bazel/commit/32f9cf1893
This repository provides rules for building Rust projects with Bazel.
The fastest way to try this in an empty project is to click the green “Use this template” button on https://github.com/bazel-starters/rust.
General discussions and announcements take place in the GitHub Discussions, but there are additional places where community members gather to discuss rules_rust.
Please refer to the full documentation.