| 1 |
Description: Fix cargo_metadata API compatibility |
| 2 |
Adapt to cargo_metadata 0.23 API where PackageName no longer implements |
| 3 |
PartialEq with &str directly. Use as_str() for string comparison. |
| 4 |
Author: Jelmer Vernooij <[email protected]> |
| 5 |
Forwarded: not-needed |
| 6 |
Last-Update: 2025-11-04 |
| 7 |
Index: maturin/src/source_distribution.rs |
| 8 |
=================================================================== |
| 9 |
--- maturin.orig/src/source_distribution.rs |
| 10 |
+++ maturin/src/source_distribution.rs |
| 11 |
@@ -350,7 +350,7 @@ pub fn find_path_deps(cargo_metadata: &M |
| 12 |
.find(|package| &package.id == dep_id) |
| 13 |
.unwrap() |
| 14 |
.name; |
| 15 |
- &package.name == dep_name |
| 16 |
+ package.name.as_str() == dep_name.as_str() |
| 17 |
}) |
| 18 |
.unwrap(); |
| 19 |
if let Some(path) = &dependency.path { |