3 ms·
Does Cargo re-use dependencies today? Last time I tried to build medium-sized Rust projects, it pulled hundreds of dependencies each time, even the same ones. I
by johnisgood 2y ago
Does Cargo re-use dependencies today? Last time I tried to build medium-sized Rust projects, it pulled hundreds of dependencies each time, even the same ones. It took up too much space, and took too long to build.
- steveklabnik 2y agoYes, and it always has. If you do a second build, it will not rebuild those dependencies again. > even the same ones. Rust supports multiple versions of the same dependency, so that may be what you observed.
- johnisgood 2y agoYeah, I believe it was that.