Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into cmichi-release-5.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
cmichi committed Nov 28, 2024
2 parents 979ddc0 + d091d59 commit 5c91524
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crates/build/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ include = ["Cargo.toml", "src/**/*.rs", "README.md", "LICENSE", "build.rs", "tem
regex = "1"
anyhow = "1.0.83"
blake2 = "0.10.6"
cargo_metadata = "0.18.1"
cargo_metadata = "0.19.0"
colored = "2.1.0"
clap = { version = "4.5.4", features = ["derive", "env"] }
duct = "0.13.7"
Expand Down
3 changes: 2 additions & 1 deletion crates/build/src/crate_metadata.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ use cargo_metadata::{
Metadata as CargoMetadata,
MetadataCommand,
Package,
TargetKind,
};
use semver::Version;
use serde_json::{
Expand Down Expand Up @@ -77,7 +78,7 @@ impl CrateMetadata {
if let Some(lib_name) = &root_package
.targets
.iter()
.find(|target| target.kind.iter().any(|t| t == "lib"))
.find(|target| target.kind.iter().any(|f| *f == TargetKind::Lib))
{
if lib_name.name != root_package.name {
// warn user if they still specify a lib name different from the
Expand Down

0 comments on commit 5c91524

Please sign in to comment.