Pull in rules_rust
It needs some tweaks to actually work for our armv7 platform.
Signed-off-by: Brian Silverman <bsilver16384@gmail.com>
Change-Id: Icc7cb075e2409b7a060c1b30cde1366ce1e2d571
diff --git a/third_party/rules_rust/.bazelrc b/third_party/rules_rust/.bazelrc
new file mode 100644
index 0000000..dcff4e6
--- /dev/null
+++ b/third_party/rules_rust/.bazelrc
@@ -0,0 +1,17 @@
+# `.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=//rust:defs.bzl%rustfmt_aspect
+build:rustfmt --output_groups=+rustfmt_checks
+
+# Enable clippy for all targets in the workspace
+build:clippy --aspects=//rust:defs.bzl%rust_clippy_aspect
+build:clippy --output_groups=+clippy_checks
+
+# 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