diff --git a/Cargo.toml b/Cargo.toml
index 2b5d06b..1c704ae 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -132,7 +132,7 @@ version = "1.0.86"
 version = "1.1.6"
 
 [dependencies.cargo_metadata]
-version = "0.19"
+version = "0.23"
 
 [dependencies.clap]
 version = "4.4.1"
diff --git a/src/package.rs b/src/package.rs
index 45fe370..a4bb5cc 100644
--- a/src/package.rs
+++ b/src/package.rs
@@ -65,7 +65,7 @@ impl Package {
             return None;
         };
         Some(Package {
-            name,
+            name: name.to_string(),
             top_sources: package_top_sources(workspace_root, package_metadata),
             version: package_metadata.version.to_string(),
             relative_dir,
