Skip to main content

Module project

Module project 

Source
Expand description

Project root detection.

The dispatcher walks upward from the current working directory looking for a .git directory, the nearest Cargo.toml, or .ready-set.toml. The first hit wins. The result is exported as READY_SET_PROJECT_ROOT for plugins that want it.

Functionsยง

detect_project_root
Walk upward from cwd to detect a project root. Returns None if the filesystem root is reached without finding any marker.