commit | 8d074a0b9e5dfcf85a8dc876e9b29b6cef3422e8 | [log] [tgz] |
---|---|---|
author | David Zbarsky <dzbarsky@gmail.com> | Mon Apr 22 04:27:51 2024 -0400 |
committer | GitHub <noreply@github.com> | Mon Apr 22 08:27:51 2024 +0000 |
tree | 654c12f319146ab19ab45f05970402b729a56f24 | |
parent | 825aef962e248f4bfdec62cd8106f94638f5d4b6 [diff] |
Bzlmod-aware runfiles library (#2566) This implements the repo_mapping capabilities and provides a new runfiles API. The new API can be accessed explicitly as `runfiles::Runfiles::rlocation_from` or with the `runfiles::rlocation!` macro, which adds compile-time support for correctly embedding the external repo. This is a purely new API, existing usage continues to work, although we mark it deprecated because it's not fully correct. We can remove it at some point in the future. This PR also transitions in-repo examples/tests to using it, in case anyone copies them. --------- Co-authored-by: scentini <rosica@google.com>
This repository provides rules for building Rust projects with Bazel.
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.