Hacker News new | ask | show | jobs
by jackosdev 1233 days ago
sccache works really well and there’s only two steps to install it and enable it globally, speeds up compilation time a lot as well:

https://github.com/mozilla/sccache

1 comments

sccache includes the absolute path for each compilation, so it doesn't help with caching the same dependency across different projects.
Oh yeah, can fix that though with:

mkdir -p ~/cargo/target

export CARGO_TARGET_DIR="~/cargo/target"