tag | 236b5900722203f2ee9d66deaca136820a7c9149 | |
---|---|---|
tagger | Emilio Cobos Álvarez <emilio@crisal.io> | Mon Oct 08 15:40:08 2018 +0200 |
object | 988a9537800a23c045e045f19e02a1674d6a14ef |
v0.42.1
commit | 988a9537800a23c045e045f19e02a1674d6a14ef | [log] [tgz] |
---|---|---|
author | bors-servo <lbergstrom+bors@mozilla.com> | Mon Oct 08 08:16:32 2018 -0400 |
committer | GitHub <noreply@github.com> | Mon Oct 08 08:16:32 2018 -0400 |
tree | c43cd2f8e01ec8bf73d6141fe5ed9b0f7dbac038 | |
parent | 3d80d6690ff2ce7af665fb53bcbb1966bee4efa3 [diff] | |
parent | b7c4e8b784e4dafb41c880d4a74e7260004ea79b [diff] |
Auto merge of #1415 - emilio:clang-sys-up, r=emilio Update clang-sys.
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