lib.rs 330 B

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