fn parse_external_bin(bundle_settings: BundleSettings) -> crate::Result<BundleSettings> {
  let target_triple = target_triple()?;
  let mut win_paths = Vec::new();
  let external_bin = match bundle_settings.external_bin {
    Some(paths) => {
      for curr_path in paths.iter() {
        win_paths.push(format!(
          "{}-{}{}",
          curr_path,
          target_triple,
          if cfg!(windows) { ".exe" } else { "" }
        ));
      }
      Some(win_paths)
    }
    None => Some(vec![]),
  };

  Ok(BundleSettings {
    external_bin,
    ..bundle_settings
  })
}
/// Parses the external binaries to bundle, adding the target triple suffix to each of them.
Parses the external binaries to bundle, adding the target triple suffix to each of them.
Parses the external binaries to bundle adding the target triple suffix to each of them .
fn parse_external_bin(bundle_settings: BundleSettings) -> crate::Result<BundleSettings> {
  let target_triple = target_triple()?;
  let mut win_paths = Vec::new();
  let external_bin = match bundle_settings.external_bin {
    Some(paths) => {
      for curr_path in paths.iter() {
        win_paths.push(format!(
          "{}-{}{}",
          curr_path,
          target_triple,
          if cfg!(windows) { ".exe" } else { "" }
        ));
      }
      Some(win_paths)
    }
    None => Some(vec![]),
  };
  Ok(BundleSettings {
    external_bin,
    ..bundle_settings
  })
}
fn parse_external_bin ( bundle_settings : BundleSettings ) -> crate :: Result < BundleSettings > { let target_triple = target_triple ( ) ? ; let mut win_paths = Vec :: new ( ) ; let external_bin = match bundle_settings . external_bin { Some ( paths ) => { for curr_path in paths . iter ( ) { win_paths . push ( format ! ( " " curr_path target_triple if cfg ( windows ) { " " } else { " " } ) ) ; } Some ( win_paths ) } None => Some ( vec ! [ ] ) , } ; Ok ( BundleSettings { external_bin , .. bundle_settings } ) }
Parses the external binaries to bundle, adding the target triple suffix to each of them.
Parses the external binaries to bundle adding the target triple suffix to each of them .
bundle_settings
BundleSettings
bundle_settings
BundleSettings