Skip to content

Commit

Permalink
Merge pull request #1671 from bendk/library-mode-crate-types
Browse files Browse the repository at this point in the history
Allow different crate types when using library mode
  • Loading branch information
bendk authored Aug 7, 2023
2 parents 5497ae8 + 088e565 commit 02ada51
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions uniffi_bindgen/src/library_mode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,9 @@ fn find_package_by_crate_name(
.packages
.iter()
.filter(|p| {
p.targets.iter().any(|t| {
t.name.replace('-', "_") == crate_name && t.crate_types.iter().any(|ct| ct == "lib")
})
p.targets
.iter()
.any(|t| t.name.replace('-', "_") == crate_name)
})
.collect();
match matching.len() {
Expand Down

0 comments on commit 02ada51

Please sign in to comment.