1 2 3 4 5 6 7 8 9 10 11 12 13
extern crate pkg_config; fn main() { // We don't want to link this to build features. #[cfg(not(feature = "doc"))] match pkg_config::find_library("exempi-2.0 >= 2.4.0") { Ok(_) => (), Err(e) => { println!("Exempi not found"); panic!("{}", e); } } }