4 ms·
> Rust does not have a global system cache for libraries, and I don't think there is any package manager installing pre-compiled Rust libraries, so at least for
by Nullabillity 6y ago
> Rust does not have a global system cache for libraries, and I don't think there is any package manager installing pre-compiled Rust libraries, so at least for the initial compiles, Rust needs to do much more work than C, for Rust dependencies at least.
FWIW, Nix can do this (via Carnix). But it turns out not to be too useful anyway, because any feature flags that you use will invalidate the cache for everything that depends (transitively) on that crate.
- Mic92 6y agocrate2nix is better maintained alternative to carnix: https://github.com/kolloch/crate2nix https://github.com/kolloch/crate2nix The cache is still useful though if you think about CI builds or having a common project in a team.