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
bindgen
branch 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 > webrender_ffi_autogen.h
- Put the generated file into gfx/webrender_bindings and #include it from webrender_ffi.h
- A bunch of the stuff from webrender_ffi.h can now be removed
Description
Languages
Rust
44.9%
C
33.8%
Cython
12.7%
C++
8.5%
CMake
0.1%