diff --git a/.bazelrc b/.bazelrc index 5b3cd4157e..dcff4e65d6 100644 --- a/.bazelrc +++ b/.bazelrc @@ -1,5 +1,5 @@ # `.bazelrc` is a Bazel configuration file. -# https://docs.bazel.build/versions/master/best-practices.html#using-the-bazelrc-file +# https://bazel.build/docs/best-practices#bazelrc-file # Enable rustfmt for all targets in the workspace build:rustfmt --aspects=//rust:defs.bzl%rustfmt_aspect @@ -9,5 +9,9 @@ build:rustfmt --output_groups=+rustfmt_checks build:clippy --aspects=//rust:defs.bzl%rust_clippy_aspect build:clippy --output_groups=+clippy_checks -# https://bazel.googlesource.com/bazel/+/master/site/docs/windows.md#enable-symlink-support -startup --windows_enable_symlinks \ No newline at end of file +# https://bazel.build/docs/windows#symlink +startup --windows_enable_symlinks + +# This import should always be last to allow users to override +# settings for local development. +try-import %workspace%/user.bazelrc diff --git a/.gitignore b/.gitignore index 52814c8a7c..ca118a20f7 100644 --- a/.gitignore +++ b/.gitignore @@ -8,6 +8,7 @@ /examples/bazel-* /examples/crate_universe/*/bazel-* /docs/bazel-* +user.bazelrc # rustfmt *.rs.bk diff --git a/examples/.bazelrc b/examples/.bazelrc index 7dcdbcf2bb..30c4a08670 100644 --- a/examples/.bazelrc +++ b/examples/.bazelrc @@ -1,5 +1,5 @@ # `.bazelrc` is a Bazel configuration file. -# https://docs.bazel.build/versions/master/best-practices.html#using-the-bazelrc-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 @@ -8,3 +8,7 @@ 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 + +# This import should always be last to allow users to override +# settings for local development. +try-import %workspace%/user.bazelrc diff --git a/examples/crate_universe/.bazelrc b/examples/crate_universe/.bazelrc index 7dcdbcf2bb..30c4a08670 100644 --- a/examples/crate_universe/.bazelrc +++ b/examples/crate_universe/.bazelrc @@ -1,5 +1,5 @@ # `.bazelrc` is a Bazel configuration file. -# https://docs.bazel.build/versions/master/best-practices.html#using-the-bazelrc-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 @@ -8,3 +8,7 @@ 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 + +# This import should always be last to allow users to override +# settings for local development. +try-import %workspace%/user.bazelrc