tag | 195b21f002887de6f30bc90c8b304fa47b0e2708 | |
---|---|---|
tagger | Emilio Cobos Álvarez <emilio@crisal.io> | Fri Nov 23 11:44:48 2018 +0100 |
object | 68d0af91e58d8ae4c384fb8ae48153dd3ddb7e0a |
v0.43.2
commit | 68d0af91e58d8ae4c384fb8ae48153dd3ddb7e0a | [log] [tgz] |
---|---|---|
author | Emilio Cobos Álvarez <emilio@crisal.io> | Fri Nov 23 11:43:44 2018 +0100 |
committer | Emilio Cobos Álvarez <emilio@crisal.io> | Fri Nov 23 11:43:44 2018 +0100 |
tree | 8499ccde3eeaf1f42e52b5f7f044186bf4b86031 | |
parent | af44a14cc6da0953604a37439b2a8daa70d14d57 [diff] |
Version bump.
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