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