bazelbuild / rules_rust

Rust rules for Bazel
https://bazelbuild.github.io/rules_rust/
Apache License 2.0
670 stars 433 forks source link

[bug] only generate rust libraries with coverage instrumentation only when coverage is enabled #2858

Open Ryang20718 opened 2 months ago

Ryang20718 commented 2 months ago

Currently, binaries produced by rust_binary generate profraw files which means the binary is built with code coverage instrumentation with bazel build. We should only generate coverage with bazel coverage. This PR fixes this bug