Skip to content

Commit

Permalink
fix: update canister hyphen handling for old versions of cargo (#3969)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamspofford-dfinity authored Oct 31, 2024
1 parent b6fdcb3 commit e38b55f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dfx/src/lib/canister_info/rust.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ impl CanisterInfoFactory for RustCanisterInfo {
};
let mut candidate_targets = package_info.targets.iter().filter(|x| {
x.crate_types.iter().any(|c| {
(c == "cdylib" && x.name == crate_name.replace('-', "_"))
(c == "cdylib" && x.name.replace('-', "_") == crate_name.replace('-', "_"))
|| (c == "bin" && x.name == crate_name)
})
});
Expand Down

0 comments on commit e38b55f

Please sign in to comment.