Hacker News new | past | comments | ask | show | jobs | submit login

It will be nice when Cargo dependencies can use pre-built binaries instead of having to compile the whole dep chain. One crate I contribute to has a 4 GiB target folder and takes 20 mins to compile from scratch...



In the meantime, you can use sccache to at least save the time spent to compile the same version of a crate more than once.

https://github.com/mozilla/sccache


thanks for the recommendation. if I understand [1] correctly, this cache is hosed when you upgrade rust?

[1]: https://github.com/rust-lang/cargo/issues/1139#issuecomment-...


Yes, everything needs to be rebuilt with the new compiler after a ugprade, but sccache still provides very valuable time savings when you work on multiple Rust projects.


See below, that is planned. Can’t guarantee a timeframe though.


reminds me of nixos early days, then they added binary channels, so much nicer




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: