Expose every toolchain binary as a Make variable with an rlocationpath pair (#4471) - `rust_toolchain` adds `RUSTC_RLOCATIONPATH` (and the pairs for its deprecated `CARGO`, `RUSTDOC` and `RUSTFMT` passthroughs) - `rustfmt_toolchain` adds `RUSTC_RLOCATIONPATH` - `mdbook_toolchain` adds `MDBOOK_RLOCATIONPATH` - `rust_bindgen_toolchain`, `rust_wasm_bindgen_toolchain` and `rust_prost_toolchain` provided no Make variables at all; they now expose `BINDGEN`/`CLANG`, `WASM_BINDGEN_CLI`/`WASM_BINDGEN_TEST_RUNNER` and `PROST_PLUGIN`/`TONIC_PLUGIN`, each with a `*_RLOCATIONPATH` pair, reachable by listing the toolchain type in `toolchains`. The `*_RLOCATIONPATH` values are exercised by running each binary from the runfiles of its `current_*` alias.
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.