commit | a46810571ae333360b581907d1590d1cc46f481c | [log] [tgz] |
---|---|---|
author | Emilio Cobos Álvarez <emilio@crisal.io> | Mon Jan 22 11:26:10 2018 +0100 |
committer | Emilio Cobos Álvarez <emilio@crisal.io> | Mon Jan 22 11:40:58 2018 +0100 |
tree | 2b4a3d2510e17f7694e1e001367ee41196e281ec | |
parent | a2409da1f7fae5ca3654d79d66216f2770832f52 [diff] |
Minor version bump. Closes #1231.
bindgen
impl period
has been started! Join us at Gitter.im.
bindgen
automatically generates Rust FFI bindings to C and 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