|
|
|
|
|
by kibwen
4684 days ago
|
|
> What I consider missing for "properly" interfacing with
> C is for Rust to be able to slurp C headers as they are,
> without the need for additional "translation" files that
> are presented in the article.
rust-bindgen (modeled after Clay's bindgen tool) has you covered:https://github.com/crabtw/rust-bindgen/ C header files go in, the proper Rust definitions come out. There are long-term plans to adopt this as an official tool to be distributed with the compiler. |
|