File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ authors = [
63
63
64
64
[workspace .dependencies ]
65
65
anyhow = " 1"
66
- cargo_metadata = " 0.18.1 "
66
+ cargo_metadata = " 0.22 "
67
67
clap = { version = " 4.5.26" , features = [" derive" ] }
68
68
futures-core = " 0.3.19"
69
69
futures-lite = " 1.12.0"
Original file line number Diff line number Diff line change
1
+ use cargo_metadata:: TargetKind ;
1
2
use heck:: ToShoutySnakeCase ;
2
3
use std:: env:: var_os;
3
4
use std:: path:: PathBuf ;
@@ -12,7 +13,7 @@ fn main() {
12
13
let test_programs_meta = meta
13
14
. packages
14
15
. iter ( )
15
- . find ( |p| p. name == "test-programs" )
16
+ . find ( |p| * p. name == "test-programs" )
16
17
. expect ( "test-programs is in cargo metadata" ) ;
17
18
let test_programs_root = test_programs_meta. manifest_path . parent ( ) . unwrap ( ) ;
18
19
println ! (
@@ -37,7 +38,7 @@ fn main() {
37
38
for binary in test_programs_meta
38
39
. targets
39
40
. iter ( )
40
- . filter ( |t| t. kind == [ "bin" ] )
41
+ . filter ( |t| t. kind == [ TargetKind :: Bin ] )
41
42
{
42
43
let component_path = out_dir
43
44
. join ( "wasm32-wasip2" )
You can’t perform that action at this time.
0 commit comments