You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.adoc
+15Lines changed: 15 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -81,6 +81,21 @@ NOTE: This section assumes you're already familiar with the prerequisites and en
81
81
* Use `cargo check` when you just want to know if your code compiles. It's _much_ faster than `cargo build` or `cargo nextest run`.
82
82
* When using Cargo's check/build/test/clippy commands, you can use the `-p PACKAGE` flag to only operate on a specific package. This often saves a lot of time for incremental builds.
83
83
* When using Cargo's check/build/clippy commands, use `--all-targets` to make sure you're checking or building the test code, too.
84
+
* Use https://rust-analyzer.github.io/book/configuration#cargo.targetDir[`cargo.targetDir`] to give rust-analyzer a target directory other than `./target` so it doesn't block you from running commands in the terminal. This uses extra disk space.
85
+
86
+
.How to set `cargo.targetDir` in various editors
87
+
[%collapsible]
88
+
====
89
+
90
+
[source, toml]
91
+
.Helix
92
+
----
93
+
[language-server.rust-analyzer.config]
94
+
cargo.targetDir = true
95
+
----
96
+
97
+
====
98
+
84
99
85
100
These are explained a bit more below, along with some common pitfalls.
0 commit comments