Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
4
use std::path::{Path, PathBuf};
5
6
fn 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_hook
Function · 0.85
install_hook
Function · 0.85
Calls
1
locate_project_root
Function · 0.85
Tested by
no test coverage detected