16
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
this post was submitted on 23 Nov 2024
16 points (94.4% liked)
Rust Programming
9370 readers
2 users here now
founded 7 years ago
MODERATORS
No, you don’t need to do that.
All the source code of your dependencies are stored in
~/.cargo/registry^1. Which doesn’t lead to conflicts.And the compiled versions are stored in the
target/directory in your project directory^2, so there’s no conflict there.1: that is configurable with
CARGO_HOME, I have that set to~/.cache/cargo2: That is configurable with the
build.target-diroption. I have that set to~/.cache/cargo/targetso that build artifacts don’t end up in my backups :)