extern crate cbindgen; use cbindgen::*; use std::collections::HashSet; use std::fs::File; use std::io::Read; use std::path::Path; use std::process::Command; use std::{env, fs, str}; // Set automatically by cargo for integration tests static CBINDGEN_PATH: &str = env!("CARGO_BIN_EXE_cbindgen"); fn style_str(style: Style) -> &'static str { match style { Style::Both => "both", Style::Tag => "tag", Style::Type => "type", } } fn run_cbindgen( path: &Path, output: Option<&Path>, language: Language, cpp_compat: bool, style: Option