commit | 478fc3a5712cdd7bb71c223531c476681511ca38 | [log] [tgz] |
---|---|---|
author | scentini <rosica@google.com> | Sat Oct 29 02:42:36 2022 +0200 |
committer | GitHub <noreply@github.com> | Sat Oct 29 00:42:36 2022 +0000 |
tree | 2b376eb0e7511c0ef60433ed8d26fcfdb4f683b3 | |
parent | 9e3d8415ef158901e63e0eff3e3e45fdaacdca6d [diff] |
Fix ambiguous native dependencies in `proc_macro`s and `staticlib`s (#1611) `rustc` doesn't know how to deal with native dependencies that have the same name (specifying the full path to the native library does not currently work). `rules_rust` deals with this issue in `bin` and `cdylib` crate types by appending a hash to the different dependencies, so instead of `-lnative-dep -lnative-dep` the linking command line ends up being `-lnative-dep-{hash1} -lnative-dep-{hash2}`. This PR also applies the mechanism to `staticlib` and `proc-macro` crate types.
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.