File: fix-cargo-metadata-api

package info (click to toggle)
python-maturin 1.9.4-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 4,540 kB
  • sloc: python: 656; javascript: 93; sh: 55; makefile: 10
file content (19 lines) | stat: -rw-r--r-- 876 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Description: Fix cargo_metadata API compatibility
 Adapt to cargo_metadata 0.23 API where PackageName no longer implements
 PartialEq with &str directly. Use as_str() for string comparison.
Author: Jelmer Vernooij <jelmer@debian.org>
Forwarded: not-needed
Last-Update: 2025-11-04
Index: maturin/src/source_distribution.rs
===================================================================
--- maturin.orig/src/source_distribution.rs
+++ maturin/src/source_distribution.rs
@@ -350,7 +350,7 @@ pub fn find_path_deps(cargo_metadata: &M
                         .find(|package| &package.id == dep_id)
                         .unwrap()
                         .name;
-                    &package.name == dep_name
+                    package.name.as_str() == dep_name.as_str()
                 })
                 .unwrap();
             if let Some(path) = &dependency.path {