extern crate cbindgen; use cbindgen::*; use std::collections::HashSet; use std::path::Path; use std::process::Command; use std::{env, fs, str}; fn style_str(style: Style) -> &'static str { match style { Style::Both => "both", Style::Tag => "tag", Style::Type => "type", } } fn run_cbindgen( cbindgen_path: &'static str, path: &Path, output: &Path, language: Language, cpp_compat: bool, style: Option