blob: 30c4a0867011758ec093bab4f6afed65d5c3d8cd [file] [log] [blame]
UebelAndre52c87aa2021-06-01 14:18:58 -07001# `.bazelrc` is a Bazel configuration file.
UebelAndreacca6f42022-03-01 06:59:47 -08002# https://bazel.build/docs/best-practices#bazelrc-file
UebelAndre52c87aa2021-06-01 14:18:58 -07003
4# Enable rustfmt for all targets in the workspace
5build:rustfmt --aspects=@rules_rust//rust:defs.bzl%rustfmt_aspect
6build:rustfmt --output_groups=+rustfmt_checks
UebelAndreed647162021-07-10 09:22:07 -07007
8# Enable clippy for all targets in the workspace
9build:clippy --aspects=@rules_rust//rust:defs.bzl%rust_clippy_aspect
10build:clippy --output_groups=+clippy_checks
UebelAndreacca6f42022-03-01 06:59:47 -080011
12# This import should always be last to allow users to override
13# settings for local development.
14try-import %workspace%/user.bazelrc