tag | 5c683665d4834a00b1304a184c295751adbe9cb2 | |
---|---|---|
tagger | Emilio Cobos Álvarez <emilio@crisal.io> | Wed Mar 27 03:02:19 2019 +0100 |
object | 5b2f344bb02e72fd177149e3aa5d789679fa4471 |
v0.49.0
commit | 5b2f344bb02e72fd177149e3aa5d789679fa4471 | [log] [tgz] |
---|---|---|
author | Emilio Cobos Álvarez <emilio@crisal.io> | Wed Mar 27 03:01:51 2019 +0100 |
committer | GitHub <noreply@github.com> | Wed Mar 27 03:01:51 2019 +0100 |
tree | d8bc711f66c7a9fc4e3a2d38735071fd849ac46a | |
parent | 002cb290c6a54c070efaca191382d65193e2c257 [diff] | |
parent | 274c25c8096b6d3b819ae43e842c937cf5a63259 [diff] |
Merge pull request #1545 from emilio/bump Release 0.49.0.
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