Small or big dub packages
Laurent Tréguier
laurent.treguier.sink at gmail.com
Mon Oct 29 14:48:57 UTC 2018
On Monday, 29 October 2018 at 11:31:55 UTC, Igor wrote:
> Can someone tell me what are pros and cons of having multiple
> extra small dub packages that depend on each other versus one
> dub package that has a bunch of functionality? Good example for
> this is dlib (https://github.com/gecko0307/dlib). It has many
> functionalities that could be split into separate packages.
>
> The way I see it the advantage of smaller packages is that
> users can pick and choose and and only have the code they
> really need in their project, but the con could become managing
> a lot of dependencies. Also I am not sure how compile time on
> clean project and previously compiled project would be affected.
I'd use subpackages in such cases. This way you can either have
one dependency on the whole thing, or select only a few
subpackages.
More information about the Digitalmars-d-learn
mailing list