fn produce_workspace_context(&self) -> WorkspaceContext {
    // Gather the workspace member paths for all workspace members
    let workspace_members = self
      .metadata
      .metadata
      .workspace_members
      .iter()
      .filter_map(|pkg_id| {
        let workspace_member = self
          .metadata
          .metadata
          .packages
          .iter()
          .find(|pkg| pkg.id == *pkg_id);
        if let Some(pkg) = workspace_member {
          // Don't include binary dependencies
          if self.settings.binary_deps.contains_key(&pkg.name) {
            None
          } else {
            util::get_workspace_member_path(
              pkg.manifest_path.as_ref(),
              self.metadata.metadata.workspace_root.as_ref(),
            )
          }
        } else {
          None
        }
      })
      .collect();

    WorkspaceContext {
      workspace_path: self.settings.workspace_path.clone(),
      gen_workspace_prefix: self.settings.gen_workspace_prefix.clone(),
      output_buildfile_suffix: self.settings.output_buildfile_suffix.clone(),
      workspace_members,
    }
  }
/// Constructs a workspace context from settings.
Constructs a workspace context from settings.
Constructs a workspace context from settings .
fn produce_workspace_context(&self) -> WorkspaceContext {
    // Gather the workspace member paths for all workspace members
    let workspace_members = self
      .metadata
      .metadata
      .workspace_members
      .iter()
      .filter_map(|pkg_id| {
        let workspace_member = self
          .metadata
          .metadata
          .packages
          .iter()
          .find(|pkg| pkg.id == *pkg_id);
        if let Some(pkg) = workspace_member {
          // Don't include binary dependencies
          if self.settings.binary_deps.contains_key(&pkg.name) {
            None
          } else {
            util::get_workspace_member_path(
              pkg.manifest_path.as_ref(),
              self.metadata.metadata.workspace_root.as_ref(),
            )
          }
        } else {
          None
        }
      })
      .collect();
    WorkspaceContext {
      workspace_path: self.settings.workspace_path.clone(),
      gen_workspace_prefix: self.settings.gen_workspace_prefix.clone(),
      output_buildfile_suffix: self.settings.output_buildfile_suffix.clone(),
      workspace_members,
    }
  }
fn produce_workspace_context ( & self ) -> WorkspaceContext { // Gather the workspace member paths for all workspace members let workspace_members = self . metadata . metadata . workspace_members . iter ( ) . filter_map ( | pkg_id | { let workspace_member = self . metadata . metadata . packages . iter ( ) . find ( | pkg | pkg . id == * pkg_id ) ; if let Some ( pkg ) = workspace_member { // Don't include binary dependencies if self . settings . binary_deps . contains_key ( & pkg . name ) { None } else { util :: get_workspace_member_path ( pkg . manifest_path . as_ref ( ) , self . metadata . metadata . workspace_root . as_ref ( ) , ) } } else { None } } ) . collect ( ) ; WorkspaceContext { workspace_path : self . settings . workspace_path . clone ( ) , gen_workspace_prefix : self . settings . gen_workspace_prefix . clone ( ) , output_buildfile_suffix : self . settings . output_buildfile_suffix . clone ( ) , workspace_members , } }
Constructs a workspace context from settings.
Constructs a workspace context from settings .
&self
&self