Split rustdoc test compilation and execution (#4034) This change introduces a new `RustdocTestCompile` action which takes advantage of the nightly rustc flag `-Zunstable-options --persist-doctests` to have rustdoc tests written to disk to be executed in a separate action, similar to a normal `rust_test` which first compiles the test and then executes it in a test action. To use this change a nightly toolchain is required and the use of `--@rules_rust//rust/settings:experimental_compile_rustdoc_tests=True`. closes https://github.com/bazelbuild/rules_rust/issues/1431
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.