diff --git a/Cargo.lock b/Cargo.lock index adbec4e5..faea3a94 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2099,7 +2099,7 @@ dependencies = [ [[package]] name = "kit" -version = "0.7.5" +version = "0.7.6" dependencies = [ "alloy", "alloy-sol-macro", diff --git a/Cargo.toml b/Cargo.toml index 7fddfef7..c0dbd450 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "kit" -version = "0.7.5" +version = "0.7.6" edition = "2021" [build-dependencies] 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()