I'm having trouble with rust-analyzer forcing rebuild of a project and all its deps even though there are no code changes. I tried to diagnose what's causing it reading #16640 and with CARGO_LOG=cargo::core::compiler::fingerprint=info cargo build I'm seeing e.g.:
This appears for all the deps with build scripts so it seems that for some reason there is difference in how the build scripts are compiled.
I tried to remove all my user settings (both in VSCode and in terminal) to make sure it's not due to my config.
I also tried to set "rust-analyzer.cargo.buildScripts.useRustcWrapper": false with no success. I'm using "rust-analyzer.rust.analyzerTargetDir": true as a workaround which unfortunately bloats the build artifacts.
Hi, thanks for rust-analyzer!
I'm having trouble with rust-analyzer forcing rebuild of a project and all its deps even though there are no code changes. I tried to diagnose what's causing it reading #16640 and with
CARGO_LOG=cargo::core::compiler::fingerprint=info cargo build
I'm seeing e.g.:This appears for all the deps with build scripts so it seems that for some reason there is difference in how the build scripts are compiled.
I tried to remove all my user settings (both in VSCode and in terminal) to make sure it's not due to my config.
I also tried to set
"rust-analyzer.cargo.buildScripts.useRustcWrapper": false
with no success. I'm using"rust-analyzer.rust.analyzerTargetDir": true
as a workaround which unfortunately bloats the build artifacts.rust-analyzer version: Release: 2024-04-22 (v0.3.1932)
rustc version: rustc 1.76.0 (07dca489a 2024-02-04)
editor or extension: VSCode v0.3.1932