commit | 77046b79e4704407cebc8cf1971571215b7dc911 | [log] [tgz] |
---|---|---|
author | bors-servo <lbergstrom+bors@mozilla.com> | Sat Oct 28 08:22:17 2017 -0500 |
committer | GitHub <noreply@github.com> | Sat Oct 28 08:22:17 2017 -0500 |
tree | d40a976d7571d81e9b6554cff0e2a423282f78c9 | |
parent | c7f0fab3782217610f44ae2f32526ab8c330e8b2 [diff] | |
parent | fefbbb56ec78950275ff6a1a714efcaa48bf9e8c [diff] |
Auto merge of #1115 - emilio:bumpit, r=pepyakin Minor version bump. Only bugfixes have landed since the last release (#1112 and #1114), apart from doc fixes.
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