| # `.bazelrc` is a Bazel configuration file. |
| # https://bazel.build/docs/best-practices#bazelrc-file |
| |
| # Required on windows |
| common --enable_platform_specific_config |
| startup --windows_enable_symlinks |
| build:windows --enable_runfiles |
| |
| # 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 |
| |
| # TODO: migrate all dependencies from WORKSPACE to MODULE.bazel |
| # https://github.com/bazelbuild/rules_rust/issues/2181 |
| common --noenable_bzlmod |
| |
| # This isn't currently the defaut in Bazel, but we enable it to test we'll be ready if/when it flips. |
| build --incompatible_disallow_empty_glob |
| |
| build --java_runtime_version=remotejdk_21 |
| build --java_language_version=21 |
| build --tool_java_runtime_version=remotejdk_21 |
| build --tool_java_language_version=21 |
| |
| # This import should always be last to allow users to override |
| # settings for local development. |
| try-import %workspace%/user.bazelrc |