feat(#514): pass extra flags to clippy (#1264)

* feat(#514): pass extra flags to clippy

This change adds a new configuration rule, `clippy_flags`.
This rule allows you to override clippy flags that the
`rust_clippy_aspect` aspect and the `rust_clippy` rule use.
The flags affect all the targets.
Adding the configuration to `.bazelrc` allows you to have consistent
clippy settings for the whole team.

Example:

```
--@rules_rust//:clippy_flags=-D,clippy::all,-A,clippy::too_many_arguments
```

* sort dict entries

* Apply review feedback

* fail on unsupported clippy configuration
3 files changed
tree: 358a265afe71459c3e400d7d26b43e642e473c86
  1. .bazelci/
  2. .github/
  3. bindgen/
  4. cargo/
  5. crate_universe/
  6. distro/
  7. docs/
  8. examples/
  9. proto/
  10. rust/
  11. test/
  12. tools/
  13. util/
  14. wasm_bindgen/
  15. .bazelignore
  16. .bazelrc
  17. .gitignore
  18. ARCHITECTURE.md
  19. AUTHORS
  20. BUILD.bazel
  21. CODEOWNERS
  22. COMPATIBILITY.md
  23. CONTRIBUTING.md
  24. CONTRIBUTORS
  25. LICENSE.txt
  26. README.md
  27. version.bzl
  28. WORKSPACE.bazel
  29. workspace.bzl
README.md

Rust Rules

  • Postsubmit Build status

Overview

This repository provides rules for building Rust projects with Bazel.

Community

General discussions and announcements take place in the GitHub Discussions, but there are additional places where community members gather to discuss rules_rust.

Documentation

Please refer to the full documentation.