Finds the workspace root by searching for Cargo.toml upward from the current directory
()
| 185 | |
| 186 | /// Finds the workspace root by searching for Cargo.toml upward from the current directory |
| 187 | fn find_workspace_root() -> Result<PathBuf> { |
| 188 | let mut workspace_root = std::env::current_dir()?; |
| 189 | while !workspace_root.join("Cargo.toml").exists() { |
| 190 | workspace_root = |
| 191 | workspace_root.parent().ok_or_else(|| anyhow::anyhow!("Could not find workspace root"))?.to_path_buf(); |
| 192 | } |
| 193 | Ok(workspace_root) |
| 194 | } |
| 195 | |
| 196 | /// Extracts property descriptions from web features data |
| 197 | /// |
no outgoing calls
no test coverage detected