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

Invent a tool to automate the automated bindgen #14

Open
SAtacker opened this issue Sep 1, 2024 · 0 comments
Open

Invent a tool to automate the automated bindgen #14

SAtacker opened this issue Sep 1, 2024 · 0 comments

Comments

@SAtacker
Copy link
Contributor

SAtacker commented Sep 1, 2024

Currently we can expose the functions with much boilerplate involved. Not to mention the manual work that goes into instantiating the templates and exposing them in Rust. This is an inefficient approach and a lot of man hours are wasted in this.

What we have?

  • We have tools to parse C++ headers.
  • We have a design pattern that we use to expose these functions

Next steps for the brave:

  • Use the C++ header parser (clang?) and write patterns to generate bindings
  • Write a rust macro to generate boilerplate code on the fly
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

1 participant