blob: dcff4e65d63c1323dda75350a884ddd8e4bcdda5 [file] [log] [blame]
Brian Silverman01dfd872022-04-06 22:20:40 -07001# `.bazelrc` is a Bazel configuration file.
2# https://bazel.build/docs/best-practices#bazelrc-file
3
4# Enable rustfmt for all targets in the workspace
5build:rustfmt --aspects=//rust:defs.bzl%rustfmt_aspect
6build:rustfmt --output_groups=+rustfmt_checks
7
8# Enable clippy for all targets in the workspace
9build:clippy --aspects=//rust:defs.bzl%rust_clippy_aspect
10build:clippy --output_groups=+clippy_checks
11
12# https://bazel.build/docs/windows#symlink
13startup --windows_enable_symlinks
14
15# This import should always be last to allow users to override
16# settings for local development.
17try-import %workspace%/user.bazelrc