Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When building a proc_macro, rust-analyzer recompiles every dependencies #17269

Open
NicolasWent opened this issue May 21, 2024 · 0 comments
Open
Labels
C-bug Category: bug

Comments

@NicolasWent
Copy link

rust-analyzer version: v0.3.1958

rustc version: rustc 1.76.0 (07dca489a 2024-02-04)

editor or extension: v0.3.1958

Hello,

When I develop parts of my project that aren't a proc-macro, when the file is auto-saved, the checks that rust-analyzer do are very fast.

But when I am working on my proc macro, at every change of my file (auto-save enabled), I am seeing every dependencies getting recompiled which makes the editor slow at every change.

Is there a way for me to fix that? (Like changing some cargo check flags) Or is it the special nature of proc-macro that forces the recompilation of all of the dependencies at each save?

@NicolasWent NicolasWent added the C-bug Category: bug label May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: bug
Projects
None yet
Development

No branches or pull requests

1 participant