closed ~main

A single-file build system.


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:

Closed (WIP)

A single-file build system for D projects, inspired by OpenD. Closed is for people who want a simple alternative to DUB for things like scripts or example code.

Quick Start

Just run:

dmd source/closed.d

Alternatively, use Closed with:

closed build source
# Or: closed build

Or use DUB with:

dub run closed -- build source
# Or: dub run closed -- build

Examples

  • Build a release version with LDC.

    closed build -closed=makeReleaseBuild+useLDC
    
  • Run a Parin script.

    closed run parin/packages/setup/source -closed=removeOutput+removeObjects
    
  • Build with GCC using a version.

    closed run ../project/source -version=WithFoo -closed=useGCC
    

Additional Information

  • Supports single-file projects.
  • Can work as a library with version: ClosedLibrary
  • Checks for a local modules folder and will use it as an include path.
  • Will add -I and -J when passing folders.

Extra info can be found in the ideas page.

Help

Usage:
  closed <mode> [arguments...]
Modes:
  help   This information
  check  Quick syntax test
  build  Build project
  run    Build and run project
  test   Build and test project
Flags:
  -closed=makeReleaseBuild
  -closed=removeOutput
  -closed=removeObjects
  -closed=useDMD
  -closed=useLDC
  -closed=useGDC
  -closed=useOpenD
Authors:
  • Alexandros F. G. Kapretsos
Dependencies:
none
Versions:
0.0.1 2026-Jan-23
~main 2026-Jan-23
Show all 2 versions
Download Stats:
  • 0 downloads today

  • 0 downloads this week

  • 0 downloads this month

  • 7 downloads total

Score:
0.4
Short URL:
closed.dub.pm