tag | f5d617cbef5fdaf5a001c0cf81dbdb6ca3735ff9 | |
---|---|---|
tagger | Emilio Cobos Álvarez <emilio@crisal.io> | Sat Oct 20 07:18:37 2018 +0200 |
object | d7a74baf5c822e0312aca539c3836e5d87c6091b |
v0.42.3
commit | d7a74baf5c822e0312aca539c3836e5d87c6091b | [log] [tgz] |
---|---|---|
author | bors-servo <lbergstrom+bors@mozilla.com> | Thu Oct 18 20:48:36 2018 -0400 |
committer | GitHub <noreply@github.com> | Thu Oct 18 20:48:36 2018 -0400 |
tree | b0d11b65386e278463f904794891596fb90149f7 | |
parent | badb49277dddf1ea5d407075f9deea48897b52df [diff] | |
parent | 120dd7848191876dfaad4e19ab4640a18ed3f775 [diff] |
Auto merge of #1425 - emilio:cexpr-up, r=emilio Update cexpr. Fixes #1424.
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