tag | f3732eb7dbaa5815aa3c3952ea24a349ee22459d | |
---|---|---|
tagger | Emilio Cobos Álvarez <emilio@crisal.io> | Sat Dec 29 14:53:31 2018 +0100 |
object | 7c24f6b2f6f62f62eba64784f58b1b6d46831908 |
v0.46.0
commit | 7c24f6b2f6f62f62eba64784f58b1b6d46831908 | [log] [tgz] |
---|---|---|
author | Emilio Cobos Álvarez <emilio@crisal.io> | Sat Dec 29 14:52:29 2018 +0100 |
committer | Emilio Cobos Álvarez <emilio@crisal.io> | Sat Dec 29 14:52:29 2018 +0100 |
tree | c7e7b87b5dc52d152296be0c419d12b325508b10 | |
parent | 1104631a142620ed69c31e6af681b0bc707194a4 [diff] |
Version bump.
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