pub fn find_project_root() -> Option<PathBuf>Expand description
Find the project root by searching for theme.dampen in multiple locations.
This function implements a robust search strategy for finding the project root when the application is run from various locations (e.g., target/release).
Search order:
CARGO_MANIFEST_DIRenvironment variable (available duringcargo run)- Ancestors of the executable location (for binaries in target/release)
- Workspace examples directory (for examples in a workspace)
- Ancestors of the current working directory
ยงReturns
The project root path if found, None otherwise