commit | 33c6f261db8fd6ca752a1ed0ba1a8cf6ef3158cd | [log] [tgz] |
---|---|---|
author | bors-servo <lbergstrom+bors@mozilla.com> | Mon Oct 30 05:56:46 2017 -0500 |
committer | GitHub <noreply@github.com> | Mon Oct 30 05:56:46 2017 -0500 |
tree | 910b521e1359d2771a28209fc5cbcf3a5a83e996 | |
parent | 842ba8b6b2e3d28b113887d41eaf4918a26c2e7f [diff] | |
parent | 92d7bb3f86ccf7a7a4804e2238dad66b4f04f7b1 [diff] |
Auto merge of #1126 - emilio:b, r=pepyakin Minor version bump. Again, just fixes, and I got FF to build with #1124.
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