Am 30.03.2015 um 08:34 schrieb Rikki Cattermole:
On 30/03/2015 7:26 p.m., ketmar wrote:
what i really want to have is "libdub". i.e. turning dub to library, so
it can be easily integrated in any D project (rdmd comes to mind first).
i don't want D building abilities, for example, but i really like to use
it's package management part (and get list of files and compiler flags
for that packages).
sure, i can do this by parsing dub jsons and execing dub itself to do
package management work, but libdub is better...
maybe someday i'll wrote such thing. ;-)
You can actually use DUB as a library without any issues (within the DUB
eco system, just add it as a dependency, otherwise drop the app.d file
when building). The API is still not ideal (missing some documentation
and needs some cleanup), because it has grown by contribution from
multiple people and a public API hasn't been a primary goal at the time.
Yeah, the vibe.d/dub guys are amazing at getting stuff working. But
horrible at abstraction's especially with library code.