Skip to content

Commit 7d450b5

Browse files
alexclaude
andcommitted
Upgrade PyO3 from 0.27 to 0.28
Bump pyo3 to 0.28.0, pyo3-build-config to 0.28, and MSRV to 1.83 across the main crate and all examples. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 198809a commit 7d450b5

5 files changed

Lines changed: 8 additions & 8 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ jobs:
252252
with:
253253
python-version: "3.14"
254254
- name: Install Rust
255-
uses: dtolnay/rust-toolchain@1.74
255+
uses: dtolnay/rust-toolchain@1.83
256256
- uses: Swatinem/rust-cache@v2
257257
with:
258258
workspaces: examples/simple

Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ authors = [
88
description = "PyO3-based Rust bindings of the NumPy C-API"
99
documentation = "https://docs.rs/numpy"
1010
edition = "2021"
11-
rust-version = "1.74"
11+
rust-version = "1.83"
1212
repository = "https://github.com/PyO3/rust-numpy"
1313
categories = ["api-bindings", "development-tools::ffi", "science"]
1414
keywords = ["python", "numpy", "ffi", "pyo3"]
@@ -28,15 +28,15 @@ num-complex = ">= 0.2, < 0.5"
2828
num-integer = "0.1"
2929
num-traits = "0.2"
3030
ndarray = ">= 0.15, <=0.17"
31-
pyo3 = { version = "0.27.0", default-features = false, features = ["macros"] }
31+
pyo3 = { version = "0.28.0", default-features = false, features = ["macros"] }
3232
rustc-hash = "2.0"
3333

3434
[dev-dependencies]
35-
pyo3 = { version = "0.27.0", default-features = false, features = ["auto-initialize"]}
35+
pyo3 = { version = "0.28.0", default-features = false, features = ["auto-initialize"]}
3636
nalgebra = { version = ">=0.30, <0.35", default-features = false, features = ["std"] }
3737

3838
[build-dependencies]
39-
pyo3-build-config = { version = "0.27", features = ["resolve-config"]}
39+
pyo3-build-config = { version = "0.28", features = ["resolve-config"]}
4040

4141
[package.metadata.docs.rs]
4242
all-features = true

examples/linalg/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ name = "rust_linalg"
99
crate-type = ["cdylib"]
1010

1111
[dependencies]
12-
pyo3 = { version = "0.27.0" }
12+
pyo3 = { version = "0.28.0" }
1313
numpy = { path = "../.." }
1414
ndarray-linalg = { version = "0.14.1", features = ["openblas-system"] }
1515

examples/parallel/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ name = "rust_parallel"
99
crate-type = ["cdylib"]
1010

1111
[dependencies]
12-
pyo3 = { version = "0.27.0", features = ["multiple-pymethods"] }
12+
pyo3 = { version = "0.28.0", features = ["multiple-pymethods"] }
1313
numpy = { path = "../.." }
1414
ndarray = { version = "0.17", features = ["rayon", "blas"] }
1515
blas-src = { version = "0.8", features = ["openblas"] }

examples/simple/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ name = "rust_ext"
99
crate-type = ["cdylib"]
1010

1111
[dependencies]
12-
pyo3 = { version = "0.27.0", features = ["abi3-py37"] }
12+
pyo3 = { version = "0.28.0", features = ["abi3-py37"] }
1313
numpy = { path = "../.." }
1414

1515
[workspace]

0 commit comments

Comments
 (0)