-
Notifications
You must be signed in to change notification settings - Fork 0
/
.bazelrc
46 lines (32 loc) · 1.47 KB
/
.bazelrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
build --symlink_prefix=build/bazel-
test --test_output=errors
# print backtraces in tests
test --test_env RUST_BACKTRACE=1
# Running the simulation is painfully slow in dbg, so we want to run it in opt.
# Side-effect: we can't use #[cfg(debug_assertions)] to build code only for tests.
build -c opt
# rustfmt aspect
build:rustfmt --aspects=@rules_rust//rust:defs.bzl%rustfmt_aspect
build:rustfmt --output_groups=+rustfmt_checks
# clippy aspect
build:clippy --aspects=@rules_rust//rust:defs.bzl%rust_clippy_aspect
build:clippy --output_groups=+clippy_checks
# mypy aspect
build:mypy --aspects @mypy_integration//:mypy.bzl%mypy_aspect
build:mypy --output_groups=+mypy
build:check --config=rustfmt --config=mypy
# run clippy by default
build --config=clippy
# enable C++ toolchains, necessary for Rust finding the NDK linkers
common --incompatible_use_cc_configure_from_rules_cc
build --incompatible_enable_cc_toolchain_resolution
# map Android NDK configuration to platforms
build --platform_mappings=mobile/platform/platform_mappings
# don't pass through PATH
build --incompatible_strict_action_env
# pipelining makes builds faster, but is disabled by default because it's experimental
build --@rules_rust//rust/settings:pipelined_compilation=True
# full rust-analyzer support
build --@rules_rust//:output_diagnostics=true
run:flamegraph --run_under "@crates__flamegraph-0.6.2//:flamegraph__bin -o /tmp/flamegraph.svg --"
build:ci --keep_going --experimental_scale_timeouts=3 --config=check