rust-lang-nursery/rust-bindgen

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

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

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);

Users Guide

? Read the bindgen users guide here! ?

API Reference

API reference documentation is on docs.rs

Contributing

See CONTRIBUTING.md for hacking on bindgen!


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.