|
|
|
|
|
by saghm
3336 days ago
|
|
That's fair, although "building the world every single time" seems like a bit of an exaggeration, since cargo only recompiles dependencies if they're updated (or you specifically clean your build). The project I work on has relatively few dependencies, so the benefits of not having to specifically define different targets and spend time and effort supporting different toolchain- and platform-specific minutiae feels like it would be a big win for us. |
|
So if project A and B both depend on the same version of lib X, without any change on build flags, lib X will be compiled twice.
In C++ using binary libraries, only liking will occur.
Even if compiling from source is required, build systems like Clearmake allow for sharing object files across projects.
I do expect that Cargo might eventually support such scenarios as well, otherwise it won't be appealing to some of us.