commit | 75d72ae6d7cc6ca916acc3bc385bde29d0b7714b | [log] [tgz] |
---|---|---|
author | Damien Elmes <dae@users.noreply.github.com> | Tue Dec 08 10:06:17 2020 +1000 |
committer | GitHub <noreply@github.com> | Mon Dec 07 19:06:17 2020 -0500 |
tree | 1197b139854d68db87543447977b3b7514092476 | |
parent | bc0578798f50d018ca4278ad5610598c400992c9 [diff] |
fail build on any warnings when running clippy (#456) * fail build on any warnings when running clippy Currently warnings from rustc such as an unused import are printed during first execution, but they do not fail the build. If cargo users run clippy again, the same warnings get printed, but with Bazel nothing is shown, as the previous success is cached. This patch changes all warnings into errors, with the rationale being that if we're failing for any clippy warning, it probably makes sense to fail for rustc warnings as well. * clippy aspect needs to include --test on command line for tests Without it, items imported in integration tests generate unused import warnings, which fail the build. * tag bindgen libaries, and don't fail when they generate warnings
This repository provides rules for building Rust projects with Bazel.
Please refer to the full documentation.