Target directories in fetched crate source directories
⚓ Rust 📅 2025-10-10 👤 surdeus 👁️ 4When does cargo write artifacts to ~/.cargo/registry/src/$REGISTRY/$CRATE/target/ instead of $MY_RUST_PROJECT_DIR/target/?
There are multiple target directories in my ~/.cargo directory, for example ~/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/bevy-0.17.2/target.
They appear to be dependencies of my projects where I use the nightly toolchain and the Cranelift backend. Are they related?
3 posts - 3 participants
🏷️ Rust_feed