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

Fix FFI generation to not depend on bindgen #2

Open
notnotmelon opened this issue Aug 12, 2024 · 0 comments
Open

Fix FFI generation to not depend on bindgen #2

notnotmelon opened this issue Aug 12, 2024 · 0 comments

Comments

@notnotmelon
Copy link
Member

notnotmelon commented Aug 12, 2024

Currently the FFI generator creates .hpp files that are intended to be parsed by bindgen.
In practice the .hpp files do not compile perfectly, which is a bindgen requirement.

The C++ standard is far to complex to replicate perfectly. Additionally most users will not care about 90% of the fields on FFI structs.
We instead need to rework this repo to directly output Rust FFI psuedocode which can manually be tweaked. The psuedocode should also rely heavily on rivets::Opaque in order to ignore unwanted FFI fields while also preserving proper binary offsets.

The end result will be a completely removed dependency on bindgen.

@notnotmelon notnotmelon converted this from a draft issue Aug 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Todo
Development

No branches or pull requests

1 participant