Why are builds of my crate's test not consistent (cargo build vs cargo test vs VSCode-Test-Explorer)

· Users Rust Lang · April 17, 2026, 9:18 a.m.
Summary
The blog discusses inconsistent build results in a Rust workspace involving multiple crates and dependencies, highlighting issues with rebuilds occurring without changes and discrepancies when using VSCode's Test Explorer versus command-line testing. It poses questions regarding why certain build outputs are not reused between `cargo build` and `cargo test`, indicating a need for better understanding of build mechanics in Rust and tooling.
AUTHOR
Sponsored
Zulip logo Zulip
Organized team chat for people who take work seriously. Topic-based threading keeps conversations focused.
Try Zulip
Become a sponsor →