b71230d5ae85c8fb965e1a4e74f84e92c2f84734
This project can be used to generate C bindings for rust code. In particular it will be used for generating a C API for webrender. It is not yet fully complete.
Steps to use:
- check out the
bindgenbranch of https://github.com/staktrace/gecko-dev (this has a few patches that make binding generation easier) - cargo run path/to/bindgen-branch/gfx/webrender_bindings > path/to/bindgen-branch/gfx/webrender_bindings/webrender_ffi_autogen.h
- Try to compile the
bindgenbranch. Deal with the errors by fixing bindgen
Future work:
- Make bindgen generate even more things, so that webrender_ffi.h is minimal.
Description
Languages
Rust
44.9%
C
33.8%
Cython
12.7%
C++
8.5%
CMake
0.1%