tag | e765388c31b63e1106af6b0aa19eeee73f7bcaae | |
---|---|---|
tagger | Emilio Cobos Álvarez <emilio@crisal.io> | Fri Jul 26 17:55:23 2019 +0200 |
object | 37e3d658b1b2030e1f805cedcf7301e8ee461e09 |
v0.51.0
commit | 37e3d658b1b2030e1f805cedcf7301e8ee461e09 | [log] [tgz] |
---|---|---|
author | Emilio Cobos Álvarez <emilio@crisal.io> | Fri Jul 26 17:53:47 2019 +0200 |
committer | Emilio Cobos Álvarez <emilio@crisal.io> | Fri Jul 26 17:54:34 2019 +0200 |
tree | 3015aa1a05c82a6781ec4e7d646a5a2a6c14c267 | |
parent | 37fa476a277ddee64675d8ceb682377105d2f8f0 [diff] |
Release 0.51.0.
bindgen
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