4 ms·
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 targe
by indentit 8y ago
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...
- steveklabnik 8y agoSee below, that is planned. Can’t guarantee a timeframe though.
- saghm 8y agoIn 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 https://github.com/mozilla/sccache
- indentit 8y agothanks 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-69350600 https://github.com/rust-lang/cargo/issues/1139#issuecomment-...
- the_duke 8y agoYes, 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.
- agumonkey 8y agoreminds me of nixos early days, then they added binary channels, so much nicer