4 ms·
There's a tool called cbindgen (https://github.com/eqrion/cbindgen https://github.com/eqrion/cbindgen) that generates header files from rust code . It's a bit
by Manishearth 9y ago
There's a tool called cbindgen (https://github.com/eqrion/cbindgen https://github.com/eqrion/cbindgen) that generates header files from rust code . It's a bit experimental.
The reverse tool, bindgen (https://github.com/rust-lang-nursery/rust-bindgen/ https://github.com/rust-lang-nursery/rust-bindgen/) is more mature -- generates rust bindings from header files.
- vvanders 9y agoOh yeah, I should have mentioned bindgen, it's fantastic!