Skip to content

Commit c6086b6

Browse files
authored
chore(deps): update cargo_metadata (#87)
1 parent 6d6521e commit c6086b6

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ authors = [
6363

6464
[workspace.dependencies]
6565
anyhow = "1"
66-
cargo_metadata = "0.18.1"
66+
cargo_metadata = "0.22"
6767
clap = { version = "4.5.26", features = ["derive"] }
6868
futures-core = "0.3.19"
6969
futures-lite = "1.12.0"

test-programs/artifacts/build.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
use cargo_metadata::TargetKind;
12
use heck::ToShoutySnakeCase;
23
use std::env::var_os;
34
use std::path::PathBuf;
@@ -12,7 +13,7 @@ fn main() {
1213
let test_programs_meta = meta
1314
.packages
1415
.iter()
15-
.find(|p| p.name == "test-programs")
16+
.find(|p| *p.name == "test-programs")
1617
.expect("test-programs is in cargo metadata");
1718
let test_programs_root = test_programs_meta.manifest_path.parent().unwrap();
1819
println!(
@@ -37,7 +38,7 @@ fn main() {
3738
for binary in test_programs_meta
3839
.targets
3940
.iter()
40-
.filter(|t| t.kind == ["bin"])
41+
.filter(|t| t.kind == [TargetKind::Bin])
4142
{
4243
let component_path = out_dir
4344
.join("wasm32-wasip2")

0 commit comments

Comments
 (0)