commit | 64a4b529a12bdd65e32b6f79eb204588e4ff5e91 | [log] [tgz] |
---|---|---|
author | Krasimir Georgiev <krasimir@google.com> | Tue Jul 23 15:11:56 2024 +0200 |
committer | GitHub <noreply@github.com> | Tue Jul 23 13:11:56 2024 +0000 |
tree | d54c3ed1e95fb029f3d3e1120210396a78d5a534 | |
parent | 4a530aa5d991a2bb1d55ef0ed83e458992188a17 [diff] |
rust_stdlib_filegroup: update to support srcs from another package (#2735) The `rust_stdlib_filegroup` rule would sometimes break when passing `.rlib`-s originating from another package to `srcs`. The root cause is the logic inside it that creates `.a` -> `.rlib` symlinks, where the `.a` symlink is declared sibling of the `.rlib`. Bazel only allows symlink siblings to be in the same package as the rule. This updates the logic to detect this and create an intermediary `.rlib` under the rule's package, allowing the `.a` to be symlinked to that. --------- 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.