From 16cbe2054f34af7188c3001694369b63fc0ea841 Mon Sep 17 00:00:00 2001 From: hosted-fornet Date: Tue, 24 Sep 2024 16:15:14 -0700 Subject: [PATCH 1/3] bump versions to 0.7.6 --- Cargo.lock | 2 +- Cargo.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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] From 561a9df81781370848019bac0a93e155531a6f62 Mon Sep 17 00:00:00 2001 From: hosted-fornet Date: Tue, 24 Sep 2024 16:16:07 -0700 Subject: [PATCH 2/3] build: make check_process_lib_version() less strict --- src/build/mod.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/build/mod.rs b/src/build/mod.rs index a37988e5..f1142cad 100644 --- a/src/build/mod.rs +++ b/src/build/mod.rs @@ -398,9 +398,13 @@ 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(_) => return Ok(()), + }; let packages: HashMap = metadata .packages .iter() From 25fe0c20d819d7eeecb483c81ee4e07be5544e77 Mon Sep 17 00:00:00 2001 From: hosted-fornet Date: Tue, 24 Sep 2024 17:09:07 -0700 Subject: [PATCH 3/3] build: add warning if skipping `check_process_lib_version()` --- src/build/mod.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/build/mod.rs b/src/build/mod.rs index f1142cad..2484418d 100644 --- a/src/build/mod.rs +++ b/src/build/mod.rs @@ -403,7 +403,13 @@ fn check_process_lib_version(cargo_toml_path: &Path) -> Result<()> { .exec() { Ok(m) => m, - Err(_) => return Ok(()), + Err(_) => { + warn!( + "Couldn't find Cargo.toml where expected: {:?}; continuing.", + cargo_toml_path, + ); + return Ok(()); + } }; let packages: HashMap = metadata .packages