cbindgen
cbindgen copied to clipboard
Generate D modules
In addition to C headers and C++ headers, add support for generating D modules.
D have different types than C, here is a guide: https://wiki.dlang.org/D_binding_for_C
@vanillajonathan , please test https://github.com/kassane/cbindgen/tree/dlang (WiP) - ~~no D/C++ generics support yet.~~
Note: D wiki is deprecated!
See docs
C++
- https://dlang.org/spec/cpp_interface.html
- https://dlang.org/articles/template-comparison.html
- https://dlang.org/articles/cpptod.html
C
- https://dlang.org/spec/interfaceToC.html
- https://dlang.org/articles/ctod.html