News for hackers. Stuff that matters.
Re:Cargo: predictable dependency management by steveklabnik on Thursday May 05, 2016 @02:28PM (#11638592)
You could also change $CARGO_HOME per project, to get a per-project cache.
Re:Cargo: predictable dependency management by BenTheElder on Thursday May 05, 2016 @03:06PM (#11638878)
I actually do this with one project, with a very small script that wraps cargo and sets $CARGO_HOME to a project local path before actually calling cargo. I keep a very short cargo.py and cargo.sh with my project.

I've experimented with using this to "vendor" dependencies in a local .cargo and so far that seems to work. An early example with discussion of the python version is here: https://www.reddit.com/r/rust/comments/3ea6je/is_there_a_bet...

Re:Cargo: predictable dependency management by SimonSapin on Friday May 06, 2016 @03:01AM (#11642217)
Servo does this by default. (People who tried Servo but don’t otherwise develop in Rust didn’t like having random files in their home directory.)