cbindgen icon indicating copy to clipboard operation
cbindgen copied to clipboard

Generate D modules

Open vanillajonathan opened this issue 2 years ago • 2 comments

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 avatar Aug 04 '23 16:08 vanillajonathan

@vanillajonathan , please test https://github.com/kassane/cbindgen/tree/dlang (WiP) - ~~no D/C++ generics support yet.~~

kassane avatar Sep 29 '24 18:09 kassane

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

kassane avatar Oct 01 '24 20:10 kassane