-
Notifications
You must be signed in to change notification settings - Fork 28
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
Generate interface to C++ code #4
Comments
Looks like there is some documentation for getting rust into FF:
This appears to list of the current (root level) rust components of FF. For example this is a URL parser written in rust. It looks like they split it up into a pure rust part, and the code you see in dxr is the interface into the rest of FF. Juicy bitsLooking at the example of the mp4 parser, it looks like they use |
It might be worth considering using https://github.com/eqrion/cbindgen/ for this. It's what we use to generate c bindings for webrender. |
@jrmuizel thanks for the pointer. We briefly looked at other binding generators, but failed to find a suitable one. cbindgen looks interesting |
We should definitely provide them as a first class part of the library. That is we should be able to annotate the structs and functions in the library without the need of any wrapper library. That way we can have CI coverage of the FFI, the FFI will always be in sync, and it will prevent us from accidentally making commits that cause problems for cbindgen. |
No description provided.
The text was updated successfully, but these errors were encountered: