Pipelining: let the full rustc action write its own .rmeta (#4390) Fixes #4389. Related: #3383, #3662. With pipelining the `Rustc` action emitted `metadata` to the same path as the `RustcMetadata` action. Without a sandbox the second write hits the read-only file from the first. The full action now emits metadata to `_rmeta_full/<name>.rmeta`, which is kept out of the declared outputs. Skipped with `experimental_use_cc_common_link`. Test: `bazel test //test/unit/pipelined_compilation:pipelined_compilation_test_suite` (new `rmeta_paths_test`; `second_lib_test` updated). The new test fails without the change. Assisted by Claude.
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.