Skip to content

Split rustdoc test compilation and execution#4034

Draft
UebelAndre wants to merge 1 commit into
bazelbuild:mainfrom
UebelAndre:rustdoc
Draft

Split rustdoc test compilation and execution#4034
UebelAndre wants to merge 1 commit into
bazelbuild:mainfrom
UebelAndre:rustdoc

Conversation

@UebelAndre
Copy link
Copy Markdown
Collaborator

@UebelAndre UebelAndre commented May 13, 2026

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 #1431

@UebelAndre UebelAndre force-pushed the rustdoc branch 5 times, most recently from 287d94d to 74817a1 Compare May 14, 2026 14:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Compile rust_doc_test binaries in an action

1 participant