Fix ordering of `--remap-path-prefix` flags. (#4008) These flags are interpreted in reverse order (see https://github.com/rust-lang/rust/issues/82108), and if we have a set of flags like: ``` --remap-path-prefix=/a/b/c/d=. --remap-path-prefix=/a/b=. ``` then the first flag will never apply, because the path will be first rewritten as ./c/d. In this case, output_base is the outermost directory, so we need to make sure it's remapped last. Co-authored-by: Krasimir Georgiev <krasimir@google.com>
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.