pub fn collect_targets<'a, 't>(
        &'a self,
        target_strs: &'t [&'t str],
    ) -> Result<Vec<&'a Target>> {
        let cwd = std::env::current_dir()?;
        let target_strs = if target_strs.is_empty() {
            Cow::Owned(vec![cwd.to_str().unwrap()])
        } else {
            Cow::Borrowed(target_strs)
        };
        TopTargets::new(self, &target_strs).collect_targets()
    }
/// Collects the set of top-level dependencies that are matched by the input `target_strs`.
/// A valid target str is either the name of a service or a path in the workspace that
/// points to a directory that contains services. Like git, `:/` refers to the workspace root.
Collects the set of top-level dependencies that are matched by the input `target_strs`.
A valid target str is either the name of a service or a path in the workspace that
points to a directory that contains services. Like git, `:/` refers to the workspace root.
Collects the set of top - level dependencies that are matched by the input ` target_strs ` . A valid target str is either the name of a service or a path in the workspace that points to a directory that contains services . Like git ` : / ` refers to the workspace root .
pub fn collect_targets<'a, 't>(
        &'a self,
        target_strs: &'t [&'t str],
    ) -> Result<Vec<&'a Target>> {
        let cwd = std::env::current_dir()?;
        let target_strs = if target_strs.is_empty() {
            Cow::Owned(vec![cwd.to_str().unwrap()])
        } else {
            Cow::Borrowed(target_strs)
        };
        TopTargets::new(self, &target_strs).collect_targets()
    }
pub fn collect_targets < ' a , ' t > ( & ' a self , target_strs : & ' t [ & ' t str ] , ) -> Result < Vec < & ' a Target > > { let cwd = std :: env :: current_dir ( ) ? ; let target_strs = if target_strs . is_empty ( ) { Cow :: Owned ( vec ! [ cwd to_str ( ) unwrap ( ) ] ) } else { Cow :: Borrowed ( target_strs ) } ; TopTargets :: new ( self , & target_strs ) . collect_targets ( ) }
Collects the set of top-level dependencies that are matched by the input `target_strs`.
Collects the set of top - level dependencies that are matched by the input ` target_strs ` .
&'a self
target_strs
&'t [&'t str]
&'a self
target_strs
&'t [&'t str]