1 2 3 4 5 6 7 8 9
pub mod pre_commit; use once_cell::sync::OnceCell; use std::path::{Path, PathBuf}; fn project_root_dir() -> &'static Path { static DIR: OnceCell<PathBuf> = OnceCell::new(); DIR.get_or_init(|| devx_pre_commit::locate_project_root().unwrap()) }