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

How hard would it be to generate C bindings instead of Python bindings? #319

Open
hwittenborn opened this issue Mar 27, 2023 · 1 comment

Comments

@hwittenborn
Copy link

Hi! I just encountered this library, and I was wondering how hard it would be to use this code to generate C bindings instead of Python bindings. I haven't looked into this library too much yet, but the premise of it sounds really nice, and I'm just wanting a convenient way for me to start using a Go library in Rust, and if a C interface could automatically be generated than the rest of that could just be taken care of.

I'm just throwing it out to start some conversation, I'd be willing to look into implementing it myself if need be, but just some talk on what would need to be done first would be good on my end.

@rcoreilly
Copy link
Member

Yeah I think it would be fairly straightforward -- it generates a C intermediary file and then python interfaces with that with its own wrapper.

There is another package you might want to check out: https://github.com/xlab/c-for-go and probably others..

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

No branches or pull requests

2 participants