lib.rs 318 B

123456789101112131415161718
  1. use std::{env::current_exe, path::PathBuf};
  2. use once_cell::sync::OnceCell;
  3. pub mod adapter;
  4. pub mod usecase;
  5. pub static BUFFER: OnceCell<usize> = OnceCell::new();
  6. pub fn path() -> PathBuf {
  7. current_exe()
  8. .unwrap_or_default()
  9. .as_path()
  10. .parent()
  11. .unwrap()
  12. .to_owned()
  13. }