Function cargo_audit::lockfile::locate_or_generate
source · pub fn locate_or_generate(maybe_lockfile_path: Option<&Path>) -> Result<PathBuf>
Expand description
Tries to locate the lockfile at the specified file path. If it’s missing, tries to generate it from Cargo.toml
.
Defaults to Cargo.lock
in the current directory if passed None
as the path.