fn discover_targets( paths: &[PathBuf], current_directory: &Path, main: &MainConfiguration, ) -> Result<Vec<PathBuf>>