#Expected RAM usage of rust-analyzer in vs code when working on Tauri projects

2 messages · Page 1 of 1 (latest)

spark jungle
#

When working on my Tauri projects in vs code, rust-analyzer seems to use a surprisingly large amount of RAM, to the point where it can completely crash the editor.
I just opened one of my project's rust files to test it. Within about 30 seconds, rust-analyzer shot up to 7.2GB RAM usage. This particular project is using sveltekit with tauri.

Is this normal, or is this a bug?
If it's not a bug, are there any steps I can take to mitigate the RAM usage?

I'm using linux (endeavourOS, so pretty much arch linux) if that's relevant. I'm posting here as I was speaking to someone else on the tauri subreddit who is having the same issue in vs code but they are usually using NixOS 25.11 or Windows 11 + WSL2 (Ubuntu 22.04).
My PC has 16GB RAM & the person I was speaking to had 8GB.

If this is not the right place to ask, my apologies.

snow dirge
#

This is the usual behavior. It takes a lot of ram.