|
|
|
|
|
by nextaccountic
2028 days ago
|
|
I kind of wish to have a global environment where the same crate in the same version but with different feature flags (or other differences in the build) were treated as different builds. If this actually worked (and the global dependencies didn't interfere with each other), this could pave way to a binary cache over the Internet so that we don't need to recompile the same crates over and over and over again for each project. Kind of like Nix and its binary cache, but for Rust. I mean, Nix handles global packages just fine (unlike Python and Ruby). An Internet cache for Rust could be hosted by the Rust team (for public crates on crates.io) or be provided as a service for private code like Cachix[0]. PS: I know there is sccache, but it isn't suitable for a global binary cache. [0] https://cachix.org/ |
|