Point CARGO_MANIFEST_DIR to transformed sources dir (#4154) Crates with generated inputs have their source files and compile data staged under bazel-out so rustc can resolve modules from one root. The compile action still points `CARGO_MANIFEST_DIR` at the source package, which is absent from the sandbox and breaks proc macros that read files relative to the manifest. Assisted-by: GPT-5.6 Sol
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.