tag | 36a758bc7da81f794eb6bbb09fa630818a77e302 | |
---|---|---|
tagger | Emilio Cobos Álvarez <emilio@crisal.io> | Tue Sep 04 14:47:26 2018 +0200 |
object | 36c087bb4a22ae37d96a7a711293f5ee2d98015f |
v0.40.0
commit | 36c087bb4a22ae37d96a7a711293f5ee2d98015f | [log] [tgz] |
---|---|---|
author | bors-servo <lbergstrom+bors@mozilla.com> | Tue Sep 04 08:26:52 2018 -0400 |
committer | GitHub <noreply@github.com> | Tue Sep 04 08:26:52 2018 -0400 |
tree | e393ffaf062cc1c62becfe0053aeb37e62fa58d9 | |
parent | 0db9588e84463c211340f0bc2cb6da2b3a99c441 [diff] | |
parent | 2319708814878e7b102b5223fa762e0f464a3f96 [diff] |
Auto merge of #1381 - emilio:integer-eval, r=nox ir: Handle overflowing integer constant evaluation properly. Fixes #1380
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