blob: b52e6c4d1e065a810929f218ffe27e20c01e4292 [file] [log] [blame]
# `.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=@rules_rust//rust:defs.bzl%rustfmt_aspect
build:rustfmt --output_groups=+rustfmt_checks
# Enable clippy for all targets in the workspace
build:clippy --aspects=@rules_rust//rust:defs.bzl%rust_clippy_aspect
build:clippy --output_groups=+clippy_checks
# Confirm crate universe works without relying on the legacy
# external symlink in runfiles.
build --nolegacy_external_runfiles
# This import should always be last to allow users to override
# settings for local development.
try-import %workspace%/user.bazelrc