Skip to main content

Module project_root

Module project_root 

Source

Functions§

detect
Detect the Cargo project root by walking ancestors looking for both Cargo.toml and src/.
effective_path_opt
Convert an optional Path into an effective absolute project root path. None or “.” resolve to the detected project root; any other path is returned as owned PathBuf.
effective_path_str
If p is “.” (implicit default), replace with detected project root. Otherwise, return as-is.