Skip to content

Commit 6af50ea

Browse files
committed
Fix PyO3 0.25.x compatibility issues
- Update lib.rs module function signature for new Bound API - Replace .to_owned() with .unbind() for PyArray returns - Downgrade ndarray from 0.16.1 to 0.15.6 to match numpy 0.25.0 requirement - Resolve version conflicts between direct and transitive dependencies All compilation errors resolved, maturin build now successful
1 parent 8671dba commit 6af50ea

File tree

3 files changed

+78
-78
lines changed

3 files changed

+78
-78
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ crate-type = ["cdylib"]
1111
[dependencies]
1212
pyo3 = { version = "0.25.1", features = ["extension-module"] }
1313
numpy = "0.25.0"
14-
ndarray = "0.16.1"
14+
ndarray = "0.15.6"
1515

1616
# Optimize for size and performance in release builds
1717
[profile.release]

0 commit comments

Comments
 (0)