commit | d5dac094954b017468866129ed502655476d92ef | [log] [tgz] |
---|---|---|
author | bors-servo <lbergstrom+bors@mozilla.com> | Mon Nov 12 08:14:57 2018 -0500 |
committer | GitHub <noreply@github.com> | Mon Nov 12 08:14:57 2018 -0500 |
tree | fc1c18d505b0cc232fd565c28e65e6e33fd529c5 | |
parent | 8489d42c47d46ed63f168cd0c913e5a65c6c942a [diff] | |
parent | 85b4b62b6dc2e537f70c573fcc7f233b6331fe75 [diff] |
Auto merge of #1440 - Eijebong:envloggerup, r=emilio Update env_logger
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