fork/rules_rust
git clone https://git.julia.blue/fork/rules_rust
ba0fb595
rust-analyzer
1############################################################################### 2## Bazel Configuration Flags 3## 4## `.bazelrc` is a Bazel configuration file. 5## https://bazel.build/docs/best-practices#bazelrc-file 6############################################################################### 7 8# https://bazel.build/docs/windows#symlink 9startup --windows_enable_symlinks 10 11############################################################################### 12## Unique configuration groups 13############################################################################### 14 15# Enable rustfmt for all targets in the workspace 16build:rustfmt --aspects=//rust:defs.bzl%rustfmt_aspect 17build:rustfmt --output_groups=+rustfmt_checks 18 19# Enable clippy for all targets in the workspace 20build:clippy --aspects=//rust:defs.bzl%rust_clippy_aspect 21build:clippy --output_groups=+clippy_checks 22 23############################################################################### 24## Incompatibility flags 25############################################################################### 26 27# https://github.com/bazelbuild/bazel/issues/8195 28build --incompatible_disallow_empty_glob=true 29 30# https://github.com/bazelbuild/bazel/issues/12821 31build --nolegacy_external_runfiles 32 33############################################################################### 34## Custom user flags 35## 36## This should always be the last thing in the `.bazelrc` file to ensure 37## consistent behavior when setting flags in that file as `.bazelrc` files are 38## evaluated top to bottom. 39############################################################################### 40 41try-import %workspace%/user.bazelrc