tag | 3e8b6f4f86412e977820bdd2eebf4b664641d1ac | |
---|---|---|
tagger | Emilio Cobos Álvarez <emilio@crisal.io> | Wed May 22 15:39:12 2019 +0200 |
object | 5eefef7dcaaac45486224954c006e17ad0d24547 |
v0.49.2
commit | 5eefef7dcaaac45486224954c006e17ad0d24547 | [log] [tgz] |
---|---|---|
author | Emilio Cobos Álvarez <emilio@crisal.io> | Wed May 22 15:38:54 2019 +0200 |
committer | Emilio Cobos Álvarez <emilio@crisal.io> | Wed May 22 15:38:54 2019 +0200 |
tree | 70021f6d2bcc5c187636bf9a8d8b9f8a6a3be20a | |
parent | fe9bea0f1bedd73c9bcc4d5cf625660e313997ab [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