[−][src]Function cargo_watch::cargo::root
pub fn root() -> Option<PathBuf>
Returns the closest ancestor path containing a Cargo.toml
.
Returns None
if no ancestor path contains a Cargo.toml
, or if
the limit of MAX_ANCESTORS
ancestors has been reached.
TODO: #52 Parse toml to get to workspace root