logo
pub async fn origins(path: impl AsRef<Path>) -> HashSet<PathBuf>
Expand description

Traverses the parents of the given path and returns all that are project origins.

This checks for the presence of a wide range of files and directories that are likely to be present and indicative of the root or origin path of a project. It’s entirely possible to have multiple such origins show up: for example, a member of a Cargo workspace will list both the member project and the workspace root as origins.