Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate D modules #866

Open
vanillajonathan opened this issue Aug 4, 2023 · 2 comments · May be fixed by #1005
Open

Generate D modules #866

vanillajonathan opened this issue Aug 4, 2023 · 2 comments · May be fixed by #1005

Comments

@vanillajonathan
Copy link
Contributor

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

kassane added a commit to kassane/cbindgen that referenced this issue Sep 29, 2024
@kassane
Copy link

kassane commented Sep 29, 2024

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

kassane added a commit to kassane/cbindgen that referenced this issue Oct 30, 2024
closes: mozilla#866

* enable c++ compat
* fix struct/enum/union (semicolon)
* fix casts
* C++ namespace  support
* typedefs to alias
* attributes added (`@nogc`, `nothrow`, `@safe`) scope
* D file on tests enabled
* D generic instaciation (`Foo!(T, U)`, similar to `Foo<T, U>`)
* disable enum typedef (like C++)
* add struct-literals
* build all tests/expectations
kassane added a commit to kassane/cbindgen that referenced this issue Dec 15, 2024
closes: mozilla#866

* enable c++ compat
* fix struct/enum/union (semicolon)
* fix casts
* C++ namespace  support
* typedefs to alias
* attributes added (`@nogc`, `nothrow`, `@safe`) scope
* D file on tests enabled
* D generic instaciation (`Foo!(T, U)`, similar to `Foo<T, U>`)
* disable enum typedef (like C++)
* add struct-literals
* build all tests/expectations
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants