tag | ab84e907a102212eae080214d53718e929258ad9 | |
---|---|---|
tagger | Emilio Cobos Álvarez <emilio@crisal.io> | Mon Feb 03 13:29:29 2020 +0100 |
object | 02e76faa7a9270125ea9b8dc45cff3f475283d6e |
v0.53.1
commit | 02e76faa7a9270125ea9b8dc45cff3f475283d6e | [log] [tgz] |
---|---|---|
author | Emilio Cobos Álvarez <emilio@crisal.io> | Mon Feb 03 12:06:47 2020 +0100 |
committer | Emilio Cobos Álvarez <emilio@crisal.io> | Mon Feb 03 13:20:21 2020 +0100 |
tree | c7ba9a51d94f1a92bdc2ac2bc98aa17549daee03 | |
parent | f96dcf97f09182093bc7b82cd5f9b388e89afc44 [diff] |
Release 0.53.1.
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