#![feature(rustc_private)] extern crate crustacean; extern crate syntax; use crustacean::*; use syntax::print::pprust; fn main() { let bindings = Generator::new() .header("tests/headers/integers.h", &["--std=c99"]) .header("tests/headers/typedefs.h", &["--std=c99"]) .derive_struct(&["Debug"]) .filter(Filter::NonMain) .generate().unwrap(); for item in bindings.items { println!("{}", pprust::item_to_string(&item)); } }