Format dependency crates only when '--all' was passed
@@ -329,6 +329,7 @@ fn get_targets(workspace_hitlist: &WorkspaceHitlist) -> Result<Vec<Target>, io::
let packages = get_packages(&output.stdout)?;
// If we can find any local dependencies, we will try to get targets from those as well.
+ if *workspace_hitlist == WorkspaceHitlist::All {
for path in get_path_to_local_dependencies(&packages) {
match env::set_current_dir(path) {
Ok(..) => match get_targets(workspace_hitlist) {
@@ -338,6 +339,7 @@ fn get_targets(workspace_hitlist: &WorkspaceHitlist) -> Result<Vec<Target>, io::
Err(..) => continue,
}
}
+ }
env::set_current_dir(cur_dir)?;
match filter_packages_with_hitlist(packages, workspace_hitlist) {
