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

Support for custom languages #867

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from
Draft

Conversation

LucaCiucci
Copy link

I wanted to generate bindings for Fortran, but I think this is not possible with the current version of cbindgen.
I added the CustomLanguage trait and the corresponding Language::Custom variant, also exposed some necessary types.
An example usage can be found here.

@fredszaq
Copy link
Contributor

Hi @LucaCiucci you may wand to take a look at #853 where I've reworked quite a few things to make the addition of new languages easier.

An example of addtion of a new language is available in #857 where I add support for java (using the jna lib), the interesting part is here https://github.com/mozilla/cbindgen/blob/d8b3cfae7a197109b4fa1bcf97372db8e7d49f4e/src/bindgen/language_backend/java_jna.rs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants