News for hackers. Stuff that matters.
Re:Thoughts on Rust bloat by _nhynes on Wednesday August 21, 2019 @07:33PM (#20763075)
Have you tried sccache [0]? It doesn’t always choose to cache a dependency, but it helps about 70% of the time. Anecdotally, it hastened a release build of a pretty standard CLI tool (with incremental compilation) by almost 4x.

In the context of resource-constrained machines, one can always host it remotely on S3. (or mount an NFS share as the CARGO_TARGET_DIR, if you’re feeling adventurous or want fast CI)

[0] https://github.com/mozilla/sccache

Re:Thoughts on Rust bloat by sitkack on Thursday August 22, 2019 @12:54AM (#20764754)
Can I use this across all my projects and machines and have shared, cached compilation of Rust crates?
Re:Thoughts on Rust bloat by _nhynes on Thursday August 22, 2019 @05:01AM (#20766047)
Yes! Even using the local server on your own machine. It’s not as good as incremental, but it really does help when working with multiple projects that use the same deps in the same ways.

NB: it works a bit better on not-Mac because staticlibs are deterministic.