tag | 558b244eca6388336c75b6cf1966d4e810a5c9c9 | |
---|---|---|
tagger | Emilio Cobos Álvarez <emilio@crisal.io> | Tue Apr 10 15:55:28 2018 +0200 |
object | af54e58a8c2e513ba8c3cc00c22aa958de091a53 |
v0.36.0
commit | af54e58a8c2e513ba8c3cc00c22aa958de091a53 | [log] [tgz] |
---|---|---|
author | Emilio Cobos Álvarez <emilio@crisal.io> | Tue Apr 10 08:37:52 2018 +0200 |
committer | GitHub <noreply@github.com> | Tue Apr 10 08:37:52 2018 +0200 |
tree | 9b52ab32520f0ee52e5a3401ca9e3ebddf1db192 | |
parent | 8fe4d63bb7f610d26704dbdfaa4a36b71660b084 [diff] | |
parent | 8660c0916fa56de0fce3a0a6d670eb254fcfb42c [diff] |
Merge pull request #1305 from tamird/remove-option. r=emilio TemplateParameters do not return Option
bindgen
impl period
has been started! Join us at Gitter.im.
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