-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Expand file tree
/
Copy pathrust-analyzer.example.toml
More file actions
29 lines (23 loc) · 1 KB
/
rust-analyzer.example.toml
File metadata and controls
29 lines (23 loc) · 1 KB
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
# Example rust-analyzer config for rustup development.
# Copy and rename to rust-analyzer.toml for recommended linting and diagnostics.
[check]
# Use clippy for checking
command = "clippy"
[cargo]
# Enable the "test" feature for test-specific code
features = ["test"]
# Alternatively, enable all features if needed
# features = "all"
# Uncomment the section below to enable Windows cross-checking for #[cfg(windows)] code on UNIX.
# NOTE: requires a working cross-compiler.
# see https://rust-lang.github.io/rustup/dev-guide/linting.html#checking-windows-specific-code-on-unix
# target = "x86_64-pc-windows-gnu"
# For clang only: uncomment and append the clang sysroot option per your distro
# NOTE: may need explicit sysroot config.
# see https://rust-lang.github.io/rustup/dev-guide/linting.html#lint-1
# [cargo.extraEnv]
# CC_x86_64_pc_windows_gnu = "clang"
# CARGO_TARGET_X86_64_PC_WINDOWS_GNU_LINKER = "clang"
[diagnostics]
# Disable all dimming of inactive code due to current `cfg`
disabled = ["inactive-code"]