From 3ce2435f611c902aca9651675182df678599a028 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 17 Mar 2025 16:27:57 +0000 Subject: [PATCH 1/2] chore(deps): update cargo_metadata requirement from 0.15 to 0.19 Updates the requirements on [cargo_metadata](https://github.com/oli-obk/cargo_metadata) to permit the latest version. - [Release notes](https://github.com/oli-obk/cargo_metadata/releases) - [Changelog](https://github.com/oli-obk/cargo_metadata/blob/main/CHANGELOG.md) - [Commits](https://github.com/oli-obk/cargo_metadata/compare/0.15.0...0.19.2) --- updated-dependencies: - dependency-name: cargo_metadata dependency-type: direct:production ... Signed-off-by: dependabot[bot] --- crates/cli/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/cli/Cargo.toml b/crates/cli/Cargo.toml index 055cfe5590..058f80de58 100644 --- a/crates/cli/Cargo.toml +++ b/crates/cli/Cargo.toml @@ -17,7 +17,7 @@ clap = { version = "4.0", features = ["derive"] } anyhow = "1" dialoguer = "0.11" libloading = "0.8" -cargo_metadata = "0.15" +cargo_metadata = "0.19" semver = "1.0" [lints.rust] From 3e29a284c1eb6cf8eefb4f62175887bda08fea4e Mon Sep 17 00:00:00 2001 From: Xenira <1288524+Xenira@users.noreply.github.com> Date: Wed, 19 Mar 2025 22:06:04 +0100 Subject: [PATCH 2/2] chore(deps): use enum for crate type Refs: #404 --- crates/cli/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/cli/src/lib.rs b/crates/cli/src/lib.rs index 36cac33b34..5ca44ed638 100644 --- a/crates/cli/src/lib.rs +++ b/crates/cli/src/lib.rs @@ -4,7 +4,7 @@ mod ext; use anyhow::{bail, Context, Result as AResult}; -use cargo_metadata::{camino::Utf8PathBuf, Target}; +use cargo_metadata::{camino::Utf8PathBuf, CrateType, Target}; use clap::Parser; use dialoguer::{Confirm, Select}; @@ -433,7 +433,7 @@ fn find_ext(manifest: &Option) -> AResult { target .crate_types .iter() - .any(|ty| ty == "dylib" || ty == "cdylib") + .any(|ty| ty == &CrateType::DyLib || ty == &CrateType::CDyLib) }) .collect();