pub fn detect(start: Option<&Path>) -> PathBuf
Detect the Cargo project root by walking ancestors looking for both Cargo.toml and src/.
Cargo.toml
src/