Name: rust-bindgen
Owner: rust-lang-nursery
Description: Automatically generates Rust FFI bindings to C (and some C++) libraries.
Created: 2016-06-22 15:05:51.0
Updated: 2018-05-24 15:14:15.0
Pushed: 2018-05-21 16:38:44.0
Homepage: https://rust-lang-nursery.github.io/rust-bindgen/
Size: 10145
Language: C++
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
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
:
def struct Doggo {
int many;
char wow;
ggo;
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:
utomatically generated by rust-bindgen */
pr(C)]
struct Doggo {
pub many: ::std::os::raw::c_int,
pub wow: ::std::os::raw::c_char,
rn "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