rustdoc: align the doctest runner with the test platform (#4279) Build the compiled-doctest runner for Bazel's test execution platform and preserve its executable suffix. Reject cross-built legacy doctests with a diagnostic explaining that they must use nightly compiled doctests, since legacy doctests execute the compiler during testing. The Rustdoc analysis suite passes on macOS in stable-only, nightly-only, and Bazel 7.4.1 configurations. A current-Bazel platform regression fails with the old runner transition and passes with path mapping enabled. Compiled-only tests inherit the selected toolchain and run only when nightly compiled doctests are enabled. Windows execution remains for CI. Closes #4293.
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.