Brian Silverman | cc09f18 | 2022-03-09 15:40:20 -0800 | [diff] [blame] | 1 | # `.bazelrc` is a Bazel configuration file. |
| 2 | # https://bazel.build/docs/best-practices#bazelrc-file |
| 3 | |
Adam Snaider | 1c095c9 | 2023-07-08 02:09:58 -0400 | [diff] [blame] | 4 | # Required on windows |
| 5 | common --enable_platform_specific_config |
| 6 | startup --windows_enable_symlinks |
| 7 | build:windows --enable_runfiles |
| 8 | |
Brian Silverman | cc09f18 | 2022-03-09 15:40:20 -0800 | [diff] [blame] | 9 | # Enable rustfmt for all targets in the workspace |
| 10 | build:rustfmt --aspects=@rules_rust//rust:defs.bzl%rustfmt_aspect |
| 11 | build:rustfmt --output_groups=+rustfmt_checks |
| 12 | |
| 13 | # Enable clippy for all targets in the workspace |
| 14 | build:clippy --aspects=@rules_rust//rust:defs.bzl%rust_clippy_aspect |
| 15 | build:clippy --output_groups=+clippy_checks |
| 16 | |
| 17 | # This import should always be last to allow users to override |
| 18 | # settings for local development. |
| 19 | try-import %workspace%/user.bazelrc |