Skip to content
A tool for converting C and Objective-C headers to D modules
C D C++ Ruby Cucumber Objective-C Other
Find file
Latest commit cd2a2a1 @jacob-carlborg Merge pull request #48 from Dicebot/array-fixes
Two minor array binding fixes



DStep is a tool for translating C and Objective-C headers to D modules.


For the latest release see: releases/latest.

Pre-compiled binaries are available for OS X, Linux and FreeBSD, as 64bit. See the releases section.

Arch packages are available in [community] repository (thanks to Михаил Страшун):

Alternatively install via Dub


The source code is available under the Boost Software License 1.0




  1. Install all requirements, see above
  2. Clone the repository by running:

    $ git clone git://
  3. run dub build


$ dstep Foo.h -o Foo.d

For translating Objective-C headers add the -ObjC flag.

$ dstep Foo.h -o Foo.d -ObjC

Use -h for usage information. Any flags recognized by Clang can be used.

Limitations/Known issues

  • Doesn't translate preprocessor macros of any kind
  • Doesn't translate #include to import. A few standard C headers are translated
  • Doesn't translate C++ at all
  • Umbrella headers. Some headers just serve to include other headers. If these other headers contain some form of protection, like #error, to be included directly this can cause problems for DStep
  • Some headers are designed to always be included together with other header files. These headers may very well use symbols from other header files without including them itself. Since DStep is designed to convert header files one-by-one this doesn't work. There are two workarounds for this:

    1. Add #include-directives for the header files the header file is actually using
    2. Use the -include <file> flag available in Clang to indicate the given <file> should be processed before the file that should be translated. DStep accepts all flags Clang accepts
Something went wrong with that request. Please try again.