On Rust toolchain versions > 1.89.0, cargo build supports an unstable --compile-time-deps flag that will only build proc macros and run build scripts. This is exactly the behavior we want (and this is what rust-analyzer uses). We should check the rust toolchain version and include this flag if it is > 1.89.0.
On Rust toolchain versions > 1.89.0,
cargo buildsupports an unstable--compile-time-depsflag that will only build proc macros and run build scripts. This is exactly the behavior we want (and this is what rust-analyzer uses). We should check the rust toolchain version and include this flag if it is > 1.89.0.