tag | 9684e73b87555c0bb46a9f4512e228b896fe0930 | |
---|---|---|
tagger | Emilio Cobos Álvarez <emilio@crisal.io> | Sun Sep 30 21:06:06 2018 +0200 |
object | c4433e08ce973632565fd8e2856533052a8ecc89 |
v0.41.0
commit | c4433e08ce973632565fd8e2856533052a8ecc89 | [log] [tgz] |
---|---|---|
author | Emilio Cobos Álvarez <emilio@crisal.io> | Sun Sep 30 21:03:20 2018 +0200 |
committer | Emilio Cobos Álvarez <emilio@crisal.io> | Sun Sep 30 21:03:38 2018 +0200 |
tree | 912923c0d8af1e2a25bdcc54b154aaad12cec3fc | |
parent | c77f8c7975515aaafb680198d158ce03ca605b25 [diff] |
v0.41.0
bindgen
impl period
has been started! Join us at Gitter.im.
bindgen
automatically generates Rust FFI bindings to C (and some C++) libraries.
For example, given the C header doggo.h
:
typedef struct Doggo { int many; char wow; } Doggo; void eleven_out_of_ten_majestic_af(Doggo* pupper);
bindgen
produces Rust FFI code allowing you to call into the doggo
library's functions and use its types:
/* automatically generated by rust-bindgen */ #[repr(C)] pub struct Doggo { pub many: ::std::os::raw::c_int, pub wow: ::std::os::raw::c_char, } extern "C" { pub fn eleven_out_of_ten_majestic_af(pupper: *mut Doggo); }
📚 Read the bindgen
users guide here! 📚
API reference documentation is on docs.rs