fn produce_deps(&self) -> CargoResult<DependencySet> {
    let DependencyNames {
      build_dep_names,
      dev_dep_names,
      normal_dep_names,
    } = self.identify_named_deps()?;

    let mut build_deps = Vec::new();
    let mut dev_deps = Vec::new();
    let mut normal_deps = Vec::new();
    let all_skipped_deps = self
      .crate_settings
      .skipped_deps
      .iter()
      .cloned()
      .collect::<HashSet<_>>();

    for dep_id in &self.node.dependencies {
      // UNWRAP(s): Safe from verification of packages_by_id
      let dep_package = self
        .crate_catalog
        .entry_for_package_id(&dep_id)
        .unwrap()
        .package();

      // Skip settings-indicated deps to skip
      if all_skipped_deps.contains(&format!("{}-{}", dep_package.name, dep_package.version)) {
        continue;
      }

      // UNWRAP: Guaranteed to exist by checks in WorkspaceSubplanner#produce_build_plan
      let buildable_target = self
        .crate_catalog
        .entry_for_package_id(dep_id)
        .unwrap()
        .workspace_path_and_default_target(&self.settings);

      let buildable_dependency = BuildableDependency {
        name: dep_package.name.clone(),
        version: dep_package.version.clone(),
        buildable_target,
      };

      if build_dep_names.contains(&dep_package.name) {
        build_deps.push(buildable_dependency.clone());
      }

      if dev_dep_names.contains(&dep_package.name) {
        dev_deps.push(buildable_dependency.clone());
      }

      if normal_dep_names.contains(&dep_package.name) {
        normal_deps.push(buildable_dependency);
      }
    }

    build_deps.sort();
    dev_deps.sort();
    normal_deps.sort();

    Ok(DependencySet {
      build_deps,
      dev_deps,
      normal_deps,
    })
  }
/** Generates the set of dependencies for the contained crate. */
Generates the set of dependencies for the contained crate.
Generates the set of dependencies for the contained crate .
fn produce_deps(&self) -> CargoResult<DependencySet> {
    let DependencyNames {
      build_dep_names,
      dev_dep_names,
      normal_dep_names,
    } = self.identify_named_deps()?;
    let mut build_deps = Vec::new();
    let mut dev_deps = Vec::new();
    let mut normal_deps = Vec::new();
    let all_skipped_deps = self
      .crate_settings
      .skipped_deps
      .iter()
      .cloned()
      .collect::<HashSet<_>>();
    for dep_id in &self.node.dependencies {
      // UNWRAP(s): Safe from verification of packages_by_id
      let dep_package = self
        .crate_catalog
        .entry_for_package_id(&dep_id)
        .unwrap()
        .package();
      // Skip settings-indicated deps to skip
      if all_skipped_deps.contains(&format!("{}-{}", dep_package.name, dep_package.version)) {
        continue;
      }
      // UNWRAP: Guaranteed to exist by checks in WorkspaceSubplanner#produce_build_plan
      let buildable_target = self
        .crate_catalog
        .entry_for_package_id(dep_id)
        .unwrap()
        .workspace_path_and_default_target(&self.settings);
      let buildable_dependency = BuildableDependency {
        name: dep_package.name.clone(),
        version: dep_package.version.clone(),
        buildable_target,
      };
      if build_dep_names.contains(&dep_package.name) {
        build_deps.push(buildable_dependency.clone());
      }
      if dev_dep_names.contains(&dep_package.name) {
        dev_deps.push(buildable_dependency.clone());
      }
      if normal_dep_names.contains(&dep_package.name) {
        normal_deps.push(buildable_dependency);
      }
    }
    build_deps.sort();
    dev_deps.sort();
    normal_deps.sort();
    Ok(DependencySet {
      build_deps,
      dev_deps,
      normal_deps,
    })
  }
fn produce_deps ( & self ) -> CargoResult < DependencySet > { let DependencyNames { build_dep_names , dev_dep_names , normal_dep_names , } = self . identify_named_deps ( ) ? ; let mut build_deps = Vec :: new ( ) ; let mut dev_deps = Vec :: new ( ) ; let mut normal_deps = Vec :: new ( ) ; let all_skipped_deps = self . crate_settings . skipped_deps . iter ( ) . cloned ( ) . collect :: < HashSet < _ > > ( ) ; for dep_id in & self . node . dependencies { // UNWRAP(s): Safe from verification of packages_by_id let dep_package = self . crate_catalog . entry_for_package_id ( & dep_id ) . unwrap ( ) . package ( ) ; // Skip settings-indicated deps to skip if all_skipped_deps . contains ( & format ! ( " " dep_package name dep_package version ) ) { continue ; } // UNWRAP: Guaranteed to exist by checks in WorkspaceSubplanner#produce_build_plan let buildable_target = self . crate_catalog . entry_for_package_id ( dep_id ) . unwrap ( ) . workspace_path_and_default_target ( & self . settings ) ; let buildable_dependency = BuildableDependency { name : dep_package . name . clone ( ) , version : dep_package . version . clone ( ) , buildable_target , } ; if build_dep_names . contains ( & dep_package . name ) { build_deps . push ( buildable_dependency . clone ( ) ) ; } if dev_dep_names . contains ( & dep_package . name ) { dev_deps . push ( buildable_dependency . clone ( ) ) ; } if normal_dep_names . contains ( & dep_package . name ) { normal_deps . push ( buildable_dependency ) ; } } build_deps . sort ( ) ; dev_deps . sort ( ) ; normal_deps . sort ( ) ; Ok ( DependencySet { build_deps , dev_deps , normal_deps , } ) }
Generates the set of dependencies for the contained crate.
Generates the set of dependencies for the contained crate .
&self