Using dub and rdmd together?
Matthew OConnor
thegreendragon at gmail.com
Wed Jul 11 16:13:56 UTC 2018
Hi, I'm new to D and trying to make some command line tools that
are run with `#!/usr/bin/env rdmd`. But I would also like to
reference external packages from dub. I know I can do this with:
#!/usr/bin/env dub
/+ dub.sdl:
name "get"
dependency "requests" version="~>0.3.2"
+/
But when I run it (with `dub get.d` on Windows), it rebuilds
every time.
Is there a way to integrate the two so that `rdmd` is used for
the builds, but `dub` is used to download the necessary packages?
Thanks,
Matthew
More information about the Digitalmars-d-learn
mailing list