Added rustfmt config for running rustfmt in CI (#747)
* Added rustfmt_aspect to enforce formatting in the workspace
* Added config
* Added alias and updated docs
* Fixed formatting
* Regenerate documentation
* Addressed PR feedback
* Revert "Added alias and updated docs"
This reverts commit 191fb68741f4d8bec1856774ac1fb437ecb514cd.
* Updated formatting
* Revert "Regenerate documentation"
This reverts commit 4af576e881ccc6d42c675a9fde6c851827092aef.
diff --git a/examples/.bazelrc b/examples/.bazelrc
new file mode 100644
index 0000000..a61cbe3
--- /dev/null
+++ b/examples/.bazelrc
@@ -0,0 +1,6 @@
+# `.bazelrc` is a Bazel configuration file.
+# https://docs.bazel.build/versions/master/best-practices.html#using-the-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