
I thought I did something smart by sharing cargo target dir across all projects, but I didn’t:
“Your local builds were slow because ~/.zshrc exports one global CARGO_TARGET_DIR shared across every repo. Over time its debug/deps/ accreted 1,291,847 files (318 GB). Every rustc -L lookup and every linker invocation drags through that 1.29M-entry directory, so a 27-second build balloons to ~21 minutes — concentrated in the link phase.”
English














