input-sys 1.7.0

Bindgen generated unsafe libinput wrapper
Documentation
extern crate bindgen;

fn main()
{
    // Setup bindings builder
    let generated = bindgen::builder()
        .header("include/libinput.1.7.0.h")
        .no_unstable_rust()
        .ctypes_prefix("libc")
        .whitelisted_type(r"^libinput_.*$")
        .whitelisted_function(r"^libinput_.*$")
        .constified_enum("libinput_led")
        .constified_enum("libinput_config_send_events_mode")
        .generate().unwrap();

    println!("cargo:rustc-link-lib=dylib=input");

    // Generate the bindings
    generated.write_to_file("src/gen.rs").unwrap();
}