commit | 10185339ddd5db93a7ca4b10e2255e97c81f99cb | [log] [tgz] |
---|---|---|
author | Chris Fredrickson <cfredric@users.noreply.github.com> | Wed May 18 10:17:29 2022 -0400 |
committer | GitHub <noreply@github.com> | Wed May 18 16:17:29 2022 +0200 |
tree | 9f88dd0b7dac4bf25396d513ce2b18376ddb2263 | |
parent | 0049ce3884ccbc62e5d24363c88dc65bc06287a8 [diff] |
Build `rust_test` targets with `crate` using the same crate name as the underlying library target. (#1332) This PR changes `rust_test` to use the same crate name as the underlying target, in cases where the `crate` attribute is used. This is consistent with `cargo`, which builds the crate using the name of the library when running `cargo test`. The behavior of `rust_test` targets that don't use the `crate` attribute is unchanged.
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.