2 ms·
> (unlike Rust where the entire dependency tree is vendored separately per package). To be clear, Cargo downloads the source globally. The compiled output is p
by steveklabnik 7y ago
> (unlike Rust where the entire dependency tree is vendored separately per package).
To be clear, Cargo downloads the source globally. The compiled output is per-project, however.
- lilyball 7y agoNix uses `cargo vendor` to literally vendor the source of all dependencies as a separate derivation. Maybe cargo keeps a global cache of the source as well when doing `cargo vendor`, I don't know, but Nix does construct a derivation that contains just the vendored dependency sources and then provides that as input when building the full crate.