diff --git a/src/build/mod.rs b/src/build/mod.rs index a37988e5..2484418d 100644 --- a/src/build/mod.rs +++ b/src/build/mod.rs @@ -398,9 +398,19 @@ fn find_crate_versions( #[instrument(level = "trace", skip_all)] fn check_process_lib_version(cargo_toml_path: &Path) -> Result<()> { - let metadata = cargo_metadata::MetadataCommand::new() + let metadata = match cargo_metadata::MetadataCommand::new() .manifest_path(cargo_toml_path) - .exec()?; + .exec() + { + Ok(m) => m, + Err(_) => { + warn!( + "Couldn't find Cargo.toml where expected: {:?}; continuing.", + cargo_toml_path, + ); + return Ok(()); + } + }; let packages: HashMap = metadata .packages .iter()