commit | 39d07787a3409b7753a9600bbbfe43d757ce28c2 | [log] [tgz] |
---|---|---|
author | bors-servo <lbergstrom+bors@mozilla.com> | Mon Dec 18 15:21:06 2017 -0600 |
committer | GitHub <noreply@github.com> | Mon Dec 18 15:21:06 2017 -0600 |
tree | 987150a1deb80689de4a24ca36842d71ea9f2687 | |
parent | 3dffd1c50591c4790e2a9f0b1262064854a2e74d [diff] | |
parent | 2e969a42165426a6dbae2031987fc71daa1af23f [diff] |
Auto merge of #1196 - fitzgen:bump-to-0.32.1, r=KiChjang Bump to 0.32.1 minor release rs? @emilio
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