Skip to content

How to use rust-analyzer only for linting? #20499

Closed Answered by ShoyuVanilla
rawhuul asked this question in Q&A
Discussion options

You must be logged in to vote

For native diagnostics, disabling other features won’t lead to a noticeable performance gain. Most of the work required for diagnostics overlaps with what rust-analyzer already does during normal operation, so memory usage won’t significantly decrease.

If your goal is to reduce memory usage at startup, you can disable rust-analyzer.cachePriming.enable. However, keep in mind that as you continue editing files, memory usage will eventually converge to a similar level regardless.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@rawhuul
Comment options

@ShoyuVanilla
Comment options

Answer selected by rawhuul
@ChayimFriedman2
Comment options

@rawhuul
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants