tag | 950a9b3742453b40a132525a6063fb9812cb840a | |
---|---|---|
tagger | Emilio Cobos Álvarez <emilio@crisal.io> | Thu Oct 12 14:36:58 2017 +0200 |
object | 81166785bb4d4e315308a512b7b7594175ef1db7 |
v0.29.1
commit | 81166785bb4d4e315308a512b7b7594175ef1db7 | [log] [tgz] |
---|---|---|
author | Emilio Cobos Álvarez <emilio@crisal.io> | Thu Oct 12 14:35:04 2017 +0200 |
committer | Emilio Cobos Álvarez <emilio@crisal.io> | Thu Oct 12 14:35:04 2017 +0200 |
tree | 62943d190e2fd3e06a91727600e6c2841a979c6a | |
parent | dd094f52e56b313cf9878f69100ac655c3007690 [diff] |
Bump version.
bindgen
bindgen
automatically generates Rust FFI bindings to C and 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