Skip to main content

package_root

Function package_root 

Source
pub fn package_root(scan_root: &Path, manifest: &str) -> Option<PathBuf>
Expand description

The nearest directory at or above scan_root holding manifest, or None. The walk stops at a .git boundary so it cannot escape the repository.