RDUB is a front end for DUB, a D language build tool. It's designed to build a single source file specified on the command line, without having to edit the dub files: dub.json, dub.sdl, src/app.d, source/app.d



This tool is great for running examples and building/testing small projects! It's used in my other projects, dlang-beginners and dwtlib.

$ rdmd rdub -h

rdub is a front end for DUB - a D language build tool

rdub = run dub with defaults \src or \source\app.d

    rdub C:\path\foo.d   = run dub as follows:

    1. Copy C:\path\foo.d to src\foo.d
2. Ask before deleting all other files in \src - avoids more than 1 main().
    2. Run dub to build and run src\app.d
    3. Pass all args to dub, except: -h or --help

Requires: dub.json or dub.sdl must have name "exename" and targetType "executable"

Console Example

$ cd examples

examples-$ rdmd rdub -y console\hello

Performing "debug" build using dmd for x86.
example ~master: building configuration "application"...
Running .\example.exe
Hello World.

Reply via email to