MCPcopy Create free account
hub / github.com/elastio/devx / project_root_dir

Function project_root_dir

xtask/src/lib.rs:6–9  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 2

run_hookFunction · 0.85
install_hookFunction · 0.85

Calls 1

locate_project_rootFunction · 0.85

Tested by

no test coverage detected