pub fn package_root(scan_root: &Path, manifest: &str) -> Option<PathBuf>
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.
scan_root
manifest
None
.git