commit | b4ccc97bbe4e6c2cb264efe075cc7b55126f9607 | [log] [tgz] |
---|---|---|
author | Felipe de A. Mello Pereira <felipeamp@google.com> | Thu Aug 22 14:40:20 2024 +0200 |
committer | GitHub <noreply@github.com> | Thu Aug 22 12:40:20 2024 +0000 |
tree | 8f07057754a36df1f50f56584f821ea5c9279d5d | |
parent | dec889f0dce47306febd3d702630245aa6837a1a [diff] |
Build `rust_test` targets using a crate name different from the underlying lib (#2803) This PR also makes `rust_test` put its compilation outputs in the same directory as the `rust_library` rule (i.e. not in a `test-{hash}` subdirectory anymore). After this change both the `rust_library` and `rust_test` rules will put all its compilation outputs in the same directory, but there won't be any name collisions in non-sandboxed environments (see https://github.com/bazelbuild/rules_rust/pull/1427 for more context). This is a partial rollback of https://github.com/bazelbuild/rules_rust/commit/10185339ddd5db93a7ca4b10e2255e97c81f99cb and https://github.com/bazelbuild/rules_rust/commit/26344d4cd7bca958ab289eda3ac4c24f3a36fbeb.
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.