rustdoc: preserve the test invocation environment (#4277) Preserve Bazel's test and runfiles variables when the legacy doctest launcher starts rustdoc. Invocation values override stale action-time values, and temporary-directory variables follow TEST_TMPDIR. The doctest-writer tests and existing Rustdoc analysis suite pass on macOS. Regressions cover Unix execution, Windows script generation, and a Windows execution test for CI. Related to #4209; this does not introduce env or env_inherit attributes. Closes #4292.
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.