rdub 1.0.2
RDUB is a front end for DUB, a D language build tool.
To use this package, run the following command in your project's root directory:
Manual usage
Put the following dependency into your project's dependences section:
rdub
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"...
Linking...
Running .\example.exe
Hello World.
DWT GUI Example
Requires dwtlib
$ dub fetch dwtlib //follow instructions to build the dwt library on your system
examples-$ rdmd rdub -y gui\hello_dwt.d -b=release
Performing "debug" build using dmd for x86.
example ~master: target for configuration "application" is up to date.
To force a rebuild of up-to-date targets, run again with --force.
Running .\example.exe
To run after editing or changing the source file, use the dub --force arg to force a rebuild.
examples-$ rdmd rdub -y --force gui\hello_dwt.d -b=release
Performing "debug" build using dmd for x86.
example ~master: target for configuration "application" is up to date.
Running .\example.exe
- Registered by JamesD
- 1.0.2 released 7 years ago
- jasc2v8/rdub
- github.com/jasc2v8/rdub
- MIT
- Dependencies:
- none
- Versions:
-
3.0.1 2017-Jun-19 3.0.0 2017-Jun-02 2.0.0 2017-May-16 1.1.1 2017-May-04 1.1.0 2017-Apr-28 - Download Stats:
-
-
0 downloads today
-
0 downloads this week
-
0 downloads this month
-
65 downloads total
-
- Score:
- 0.0
- Short URL:
- rdub.dub.pm