commit | 63fbedbb46b1bacf38e48c7b421af2ffd71855b0 | [log] [tgz] |
---|---|---|
author | Brian Granaghan <granaghan@users.noreply.github.com> | Fri Mar 29 08:56:32 2024 -0700 |
committer | GitHub <noreply@github.com> | Fri Mar 29 15:56:32 2024 +0000 |
tree | c1c37c1aeeb5aa7e604d31bc0598883ad0f0c8d0 | |
parent | 0731206956d5da0680725457be6118695853d084 [diff] |
Add extra_rustc_flags_for_crate_types. (#2431) This allows extra rustc flags that will only apply to library targets to be set by the toolchain. Cross language LTO needs '-C linker-plugin-lto' on libraries, how passing this flag to rust_binary generated bloat. Adding this attribute resolves this issue. Change-Id: Iba725fab1b1941e9586ff97cd71ec3bc1dfc1523 --------- Co-authored-by: UebelAndre <github@uebelandre.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.