fn main() { println!("cargo:rerun-if-changed=src/rime_shim.c"); let library = pkg_config::Config::new() .atleast_version("1.8") .probe("rime") .expect("librime development headers are required"); let mut build = cc::Build::new(); build.file("src/rime_shim.c"); for path in library.include_paths { build.include(path); } build.compile("ferese_rime_shim"); }