Skip to content

Commit 828338d

Browse files
chore(deps): update cargo_metadata requirement from 0.15 to 0.19 (#404)
* 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](oli-obk/cargo_metadata@0.15.0...0.19.2) --- updated-dependencies: - dependency-name: cargo_metadata dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]> * chore(deps): use enum for crate type Refs: #404 --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Xenira <[email protected]>
1 parent 1404949 commit 828338d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

crates/cli/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ clap = { version = "4.0", features = ["derive"] }
1717
anyhow = "1"
1818
dialoguer = "0.11"
1919
libloading = "0.8"
20-
cargo_metadata = "0.15"
20+
cargo_metadata = "0.19"
2121
semver = "1.0"
2222

2323
[lints.rust]

crates/cli/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
mod ext;
55

66
use anyhow::{bail, Context, Result as AResult};
7-
use cargo_metadata::{camino::Utf8PathBuf, Target};
7+
use cargo_metadata::{camino::Utf8PathBuf, CrateType, Target};
88
use clap::Parser;
99
use dialoguer::{Confirm, Select};
1010

@@ -433,7 +433,7 @@ fn find_ext(manifest: &Option<PathBuf>) -> AResult<cargo_metadata::Target> {
433433
target
434434
.crate_types
435435
.iter()
436-
.any(|ty| ty == "dylib" || ty == "cdylib")
436+
.any(|ty| ty == &CrateType::DyLib || ty == &CrateType::CDyLib)
437437
})
438438
.collect();
439439

0 commit comments

Comments
 (0)