1# `.bazelrc` is a Bazel configuration file. 2# https://bazel.build/docs/best-practices#bazelrc-file 3 4# Required on windows 5common --enable_platform_specific_config 6startup --windows_enable_symlinks 7build:windows --enable_runfiles 8 9# 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# Confirm crate universe works without relying on the legacy 18# external symlink in runfiles. 19build --nolegacy_external_runfiles 20 21# TODO: migrate all dependencies from WORKSPACE to MODULE.bazel 22# https://github.com/bazelbuild/rules_rust/issues/2181 23common --noenable_bzlmod 24 25# This isn't currently the defaut in Bazel, but we enable it to test we'll be ready if/when it flips. 26build --incompatible_disallow_empty_glob 27 28# Required for cargo_build_script support before Bazel 7 29build --incompatible_merge_fixed_and_default_shell_env 30 31# This import should always be last to allow users to override 32# settings for local development. 33try-import %workspace%/user.bazelrc 34 35