pub fn package_root(scan_root: &Path, manifest: &str) -> Option<PathBuf>Expand description
The package root for scan_root: the nearest directory at or above it
holding manifest (pyproject.toml, package.json, or Cargo.toml).
The walk stops at a .git boundary so it cannot escape the repository into
an unrelated manifest. None when no manifest is found — a loose-script
tree, scanned at scan_root directly.