File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ clap = { version = "4.0", features = ["derive"] }
17
17
anyhow = " 1"
18
18
dialoguer = " 0.11"
19
19
libloading = " 0.8"
20
- cargo_metadata = " 0.15 "
20
+ cargo_metadata = " 0.19 "
21
21
semver = " 1.0"
22
22
23
23
[lints .rust ]
Original file line number Diff line number Diff line change 4
4
mod ext;
5
5
6
6
use anyhow:: { bail, Context , Result as AResult } ;
7
- use cargo_metadata:: { camino:: Utf8PathBuf , Target } ;
7
+ use cargo_metadata:: { camino:: Utf8PathBuf , CrateType , Target } ;
8
8
use clap:: Parser ;
9
9
use dialoguer:: { Confirm , Select } ;
10
10
@@ -433,7 +433,7 @@ fn find_ext(manifest: &Option<PathBuf>) -> AResult<cargo_metadata::Target> {
433
433
target
434
434
. crate_types
435
435
. iter ( )
436
- . any ( |ty| ty == "dylib" || ty == "cdylib" )
436
+ . any ( |ty| ty == & CrateType :: DyLib || ty == & CrateType :: CDyLib )
437
437
} )
438
438
. collect ( ) ;
439
439
You can’t perform that action at this time.
0 commit comments