UebelAndre | 52c87aa | 2021-06-01 14:18:58 -0700 | [diff] [blame] | 1 | # `.bazelrc` is a Bazel configuration file. |
UebelAndre | acca6f4 | 2022-03-01 06:59:47 -0800 | [diff] [blame^] | 2 | # https://bazel.build/docs/best-practices#bazelrc-file |
UebelAndre | 52c87aa | 2021-06-01 14:18:58 -0700 | [diff] [blame] | 3 | |
| 4 | # Enable rustfmt for all targets in the workspace |
| 5 | build:rustfmt --aspects=@rules_rust//rust:defs.bzl%rustfmt_aspect |
| 6 | build:rustfmt --output_groups=+rustfmt_checks |
UebelAndre | ed64716 | 2021-07-10 09:22:07 -0700 | [diff] [blame] | 7 | |
| 8 | # Enable clippy for all targets in the workspace |
| 9 | build:clippy --aspects=@rules_rust//rust:defs.bzl%rust_clippy_aspect |
| 10 | build:clippy --output_groups=+clippy_checks |
UebelAndre | acca6f4 | 2022-03-01 06:59:47 -0800 | [diff] [blame^] | 11 | |
| 12 | # This import should always be last to allow users to override |
| 13 | # settings for local development. |
| 14 | try-import %workspace%/user.bazelrc |