commit | 842ba8b6b2e3d28b113887d41eaf4918a26c2e7f | [log] [tgz] |
---|---|---|
author | bors-servo <lbergstrom+bors@mozilla.com> | Mon Oct 30 05:09:37 2017 -0500 |
committer | GitHub <noreply@github.com> | Mon Oct 30 05:09:37 2017 -0500 |
tree | 031f4be01c733f447b8758fc02fbf066f84dd066 | |
parent | 8d045d2f20f004bcc813bcf6aa68b170b6aa9c77 [diff] | |
parent | 0db2bd0c53c096f47569f07146e4890baa94d35a [diff] |
Auto merge of #1124 - emilio:templatedecl-eager-resolve, r=pepyakin ir: Don't eagerly-resolve template alias declarations. Fixes #1118
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