commit | ff1f5f9b7c8d213dfa56569425e38888fea9ae6a | [log] [tgz] |
---|---|---|
author | Sam McCall <sam.mccall@gmail.com> | Mon Nov 04 16:48:34 2024 +0100 |
committer | GitHub <noreply@github.com> | Mon Nov 04 15:48:34 2024 +0000 |
tree | 5885a324f7ea6dbaa501e2d72a577e3912cb20e1 | |
parent | 034f2cc806ff2282ce23ab3c8f46aa4c063dfd35 [diff] |
A rust_test_suite(srcs=[]) should be empty. (#2966) This can arise when srcs is a glob that currently matches no files. The target may nevertheless be useful for regularity across libraries, and to future-proof against newly-added test files being ignored. Previously, we hit the special-case handling of `test_suite(tests=[])`: > If the tests attribute is unspecified or empty, the rule will default > to including all test rules in the current BUILD file that are not > tagged as manual. These rules are still subject to tag filtering. We can't directly turn this behavior off, so this patch uses tag filtering to avoid including those default tests.
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.