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
+7Lines changed: 7 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -81,6 +81,13 @@ 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
+
* Beware of rust-analyzer's memory usage, which can easily be over 12 GB per
85
+
process. If you spawn multiple instances of it for this codebase, whether by
86
+
using multiple instances of vim, multiple editors, or some combination of
87
+
editors and coding agents, it's easy to accidentally overwhelm your system.
88
+
Consider using something like https://codeberg.org/p2502/lspmux[lspmux] (or
* 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
92
86
93
These are explained a bit more below, along with some common pitfalls.
0 commit comments