commit | bbbeb681d97e9dfc42b06645c738f492994a6386 | [log] [tgz] |
---|---|---|
author | Amelia <140295624+AmeliasCode@users.noreply.github.com> | Mon Jun 10 03:28:18 2024 -0700 |
committer | GitHub <noreply@github.com> | Mon Jun 10 10:28:18 2024 +0000 |
tree | 04fd3075e6446741a3096f274f647a7ba014061b | |
parent | ada2e524a9f005fe4f3316e7eddbb437e8f68336 [diff] |
Add support for override_target when using bzlmod (#2683) The ability to override crate targets when using crate_universe was added here: https://github.com/bazelbuild/rules_rust/pull/2674 However, this change did not expose that functionality when using bzlmod. This change adds that functionality in. Because of the limited set of options we have for dictionaries in tag classes, I had to split out "override_targets" into four different options, each taking a Label. I have added in an example based on the example given in #2674 , but using bzlmod instead. I have also tested that example and found it to be working.
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.