Two major problems with dub

Steven Schveighoffer schveiguy at gmail.com
Wed Aug 4 14:05:45 UTC 2021


On 8/4/21 4:18 AM, evilrat wrote:
> On Wednesday, 4 August 2021 at 07:21:56 UTC, Denis Feklushkin wrote:
>> On Sunday, 1 August 2021 at 17:37:01 UTC, evilrat wrote:
>>
>>> vibe-d - probably because it handles DB connection and/or keep things 
>>> async way, sure you probably can do it with Phobos but it will be 
>>> much more PITA and less performant
>>
>> It is because Postgres provides JSON types
> 
> Than again like I said it is library author mistake, if only JSON is 
> ever used then it should depend on vibe-d:data specifically and not the 
> whole vibe-d thing.

He is the library author. And [that's exactly what he 
does](https://github.com/denizzzka/dpq2/blob/c1f1c7c26f7e6cac7a34778dc580c92d8dec013b/dub.json#L12).

Note that when you depend on a subpackage, it downloads the entire 
repository (it has to), but will only build the subpackage.

-Steve


More information about the Digitalmars-d-learn mailing list