Skip to content

Commit

Permalink
Bump cargo_metadata from 0.18.1 to 0.19.0 (#1828)
Browse files Browse the repository at this point in the history
* Bump cargo_metadata from 0.18.1 to 0.19.0

Bumps [cargo_metadata](https://github.com/oli-obk/cargo_metadata) from 0.18.1 to 0.19.0.
- [Release notes](https://github.com/oli-obk/cargo_metadata/releases)
- [Changelog](https://github.com/oli-obk/cargo_metadata/blob/main/CHANGELOG.md)
- [Commits](oli-obk/cargo_metadata@0.18.1...0.19.0)

---
updated-dependencies:
- dependency-name: cargo_metadata
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* Migrate to enum instead of str

* Migrate to enum instead of str

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Michael Müller <[email protected]>
  • Loading branch information
dependabot[bot] and cmichi authored Nov 27, 2024
1 parent 5c2c572 commit d091d59
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 d091d59

Please sign in to comment.