| # `.bazelrc` is a Bazel configuration file. |
| # https://bazel.build/docs/best-practices#bazelrc-file |
| |
| # Enable rustfmt for all targets in the workspace |
| build:rustfmt --aspects=//rust:defs.bzl%rustfmt_aspect |
| build:rustfmt --output_groups=+rustfmt_checks |
| |
| # Enable clippy for all targets in the workspace |
| build:clippy --aspects=//rust:defs.bzl%rust_clippy_aspect |
| build:clippy --output_groups=+clippy_checks |
| |
| # https://bazel.build/docs/windows#symlink |
| startup --windows_enable_symlinks |
| |
| # This import should always be last to allow users to override |
| # settings for local development. |
| try-import %workspace%/user.bazelrc |