-
Notifications
You must be signed in to change notification settings - Fork 42
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
(Maybe?) port binding generator to Rust libclang #127
Comments
Has bindgen been looked at? It can generate C++ bindings with the major restrictions being around templates. |
Ping @h3r2tic, who wrote the current impl. Did you investigate that? |
Yup! It was the first thing I tried, and at least back then |
Digging into Another option is generating a |
#183 transitioned pxbind to a Rust project that just clang's AST JSON output, much easier and no requirements on big clunky libraries. |
The current binding generator in C++ is hard to compile and use, which increases friction if we want to upgrade PhysX version of expose more functionality.
I tried using the approximately equivalent Python libclang bindings to regenerate a 1:1 match of the current output but found that some info was missing around inheritance and fields, which would've lead to a complete breakage of physx-sys, which would be a hard sell.
We should investigate whether the Rust libclangd can be used to generate a more similar version of the bindings and struct-tests.
The text was updated successfully, but these errors were encountered: