1 #![feature(cfg_target_abi)] 2 3 #[macro_use] 4 extern crate lazy_static; 5 extern crate cc; 6 7 mod bindgen; 8 mod cfiles; 9 mod constant; 10 mod kconfig; 11 mod utils; 12 13 /// 运行构建 14 pub fn run() { 15 println!("cargo:rustc-link-search=src"); 16 17 crate::bindgen::generate_bindings(); 18 crate::cfiles::CFilesBuilder::build(); 19 crate::kconfig::KConfigBuilder::build(); 20 } 21