tag | d1fea447da3bbe1bb83282a422948a749915e699 | |
---|---|---|
tagger | Emilio Cobos Álvarez <emilio@crisal.io> | Thu May 16 21:44:40 2019 +0200 |
object | e5250a01b98cb8ca9dc4584788dbc5db68147a71 |
v0.49.1
commit | e5250a01b98cb8ca9dc4584788dbc5db68147a71 | [log] [tgz] |
---|---|---|
author | Emilio Cobos Álvarez <emilio@crisal.io> | Thu May 16 21:44:07 2019 +0200 |
committer | Emilio Cobos Álvarez <emilio@crisal.io> | Thu May 16 21:44:07 2019 +0200 |
tree | 5ca648c84e7d7dd2aa08931c92ca7538d338e99c | |
parent | 01a3e621d222c09df010a9f970a63851c251f60a [diff] |
Bump version.
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