pub fn find_lockfile(cargo_workspace_root: &Path, raze_output_dir: &Path) -> Option<PathBuf> {
  // The custom raze lockfile will always take precidence
  let raze_lockfile = raze_output_dir.join(RAZE_LOCKFILE_NAME);
  if raze_lockfile.exists() {
    return Some(raze_lockfile);
  }

  // If there is an existing standard lockfile, use it.
  let cargo_lockfile = cargo_workspace_root.join("Cargo.lock");
  if cargo_lockfile.exists() {
    return Some(cargo_lockfile);
  }

  // No lockfile is available.
  None
}
/// Locates a lockfile for the associated crate. A `Cargo.raze.lock` file in the
/// [RazeSettings::workspace_path](crate::settings::RazeSettings::workspace_path)
/// directory will take precidence over a standard `Cargo.lock` file.
Locates a lockfile for the associated crate.
Locates a lockfile for the associated crate .
pub fn find_lockfile(cargo_workspace_root: &Path, raze_output_dir: &Path) -> Option<PathBuf> {
  // The custom raze lockfile will always take precidence
  let raze_lockfile = raze_output_dir.join(RAZE_LOCKFILE_NAME);
  if raze_lockfile.exists() {
    return Some(raze_lockfile);
  }
  // If there is an existing standard lockfile, use it.
  let cargo_lockfile = cargo_workspace_root.join("Cargo.lock");
  if cargo_lockfile.exists() {
    return Some(cargo_lockfile);
  }
  // No lockfile is available.
  None
}
pub fn find_lockfile ( cargo_workspace_root : & Path , raze_output_dir : & Path ) -> Option < PathBuf > { // The custom raze lockfile will always take precidence let raze_lockfile = raze_output_dir . join ( RAZE_LOCKFILE_NAME ) ; if raze_lockfile . exists ( ) { return Some ( raze_lockfile ) ; } // If there is an existing standard lockfile, use it. let cargo_lockfile = cargo_workspace_root . join ( " " ) ; if cargo_lockfile . exists ( ) { return Some ( cargo_lockfile ) ; } // No lockfile is available. None }
Locates a lockfile for the associated crate.
Locates a lockfile for the associated crate .
cargo_workspace_root
&Path
raze_output_dir
&Path
cargo_workspace_root
&Path
raze_output_dir
&Path