diff --git a/libcnb-package/Cargo.toml b/libcnb-package/Cargo.toml index fa67460b..f4e2ecd2 100644 --- a/libcnb-package/Cargo.toml +++ b/libcnb-package/Cargo.toml @@ -15,7 +15,7 @@ include = ["src/**/*", "LICENSE", "README.md"] workspace = true [dependencies] -cargo_metadata = "0.18.1" +cargo_metadata = "0.19.1" ignore = "0.4.23" indoc = "2.0.5" libcnb-common.workspace = true diff --git a/libcnb-package/src/cargo.rs b/libcnb-package/src/cargo.rs index 9b3e4876..65a83398 100644 --- a/libcnb-package/src/cargo.rs +++ b/libcnb-package/src/cargo.rs @@ -43,10 +43,6 @@ fn cargo_binary_target_names_from_root_package( root_package .targets .iter() - .filter_map(|target| is_binary_target(target).then_some(target.name.clone())) + .filter_map(|target| target.is_bin().then_some(target.name.clone())) .collect() } - -fn is_binary_target(target: &cargo_metadata::Target) -> bool { - target.kind.contains(&String::from("bin")) -} diff --git a/libcnb-proc-macros/Cargo.toml b/libcnb-proc-macros/Cargo.toml index 3dbe78fe..9ac01cc0 100644 --- a/libcnb-proc-macros/Cargo.toml +++ b/libcnb-proc-macros/Cargo.toml @@ -17,7 +17,7 @@ proc-macro = true workspace = true [dependencies] -cargo_metadata = "0.18.1" +cargo_metadata = "0.19.1" fancy-regex = { version = "0.14.0", default-features = false, features = ["std"] } quote = "1.0.37" syn = { version = "2.0.87", features = ["full"] }