tag | 22b047525de89c00575075c7ea5c9a5fa14b5dc3 | |
---|---|---|
tagger | Emilio Cobos Álvarez <emilio@crisal.io> | Mon Nov 05 14:22:25 2018 +0100 |
object | 5de943ca7bf6c155f7bae1d91f1e3b1d91e8d901 |
v0.43.1
commit | 5de943ca7bf6c155f7bae1d91f1e3b1d91e8d901 | [log] [tgz] |
---|---|---|
author | bors-servo <lbergstrom+bors@mozilla.com> | Sun Oct 28 19:34:05 2018 -0400 |
committer | GitHub <noreply@github.com> | Sun Oct 28 19:34:05 2018 -0400 |
tree | 6ef0452a22e9e0884fc50d8a03d7a49ad8839413 | |
parent | a242c51e6ff0d4cc27940a3927e713e8dff82c5f [diff] | |
parent | b2083d5b4b070c4d5696c589245c291e40c7554f [diff] |
Auto merge of #1430 - emilio:implicit-template-params, r=emilio ir: Consistently append implicit template parameters when not using Rust unions. Fixes #1429.
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