tag | 2d9e55052766e1c5ac1d5338794e6aa4d74d7490 | |
---|---|---|
tagger | Emilio Cobos Álvarez <emilio@crisal.io> | Tue Sep 24 20:05:17 2019 +0200 |
object | 7c24e0d27f0f70b71df832f48dfed71010e56978 |
v0.51.1-oldsyn
commit | 7c24e0d27f0f70b71df832f48dfed71010e56978 | [log] [tgz] |
---|---|---|
author | Emilio Cobos Álvarez <emilio@crisal.io> | Tue Sep 24 20:03:54 2019 +0200 |
committer | Emilio Cobos Álvarez <emilio@crisal.io> | Tue Sep 24 20:03:54 2019 +0200 |
tree | 48f5b52054a2ecff0a42f464aa8339d49a3c4dda | |
parent | c335215018b9f03c5efc570a8dc67710f72995f3 [diff] |
Release 0.51.1, but with old syn and related dependencies.
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