Skip to content

Commit 065cb22

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 065cb22

6 files changed

Lines changed: 10 additions & 10 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

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ rust-numpy
22
===========
33
[![Actions Status](https://github.com/PyO3/rust-numpy/workflows/CI/badge.svg)](https://github.com/PyO3/rust-numpy/actions)
44
[![Crate](https://img.shields.io/crates/v/numpy.svg)](https://crates.io/crates/numpy)
5-
[![Minimum rustc 1.74](https://img.shields.io/badge/rustc-1.74+-blue.svg)](https://rust-lang.github.io/rfcs/2495-min-rust-version.html)
5+
[![Minimum rustc 1.83](https://img.shields.io/badge/rustc-1.83+-blue.svg)](https://rust-lang.github.io/rfcs/2495-min-rust-version.html)
66
[![Documentation](https://docs.rs/numpy/badge.svg)](https://docs.rs/numpy)
77
[![codecov](https://codecov.io/gh/PyO3/rust-numpy/branch/main/graph/badge.svg)](https://codecov.io/gh/PyO3/rust-numpy)
88

@@ -13,7 +13,7 @@ Rust bindings for the NumPy C-API.
1313
- [Current main](https://pyo3.github.io/rust-numpy)
1414

1515
## Requirements
16-
- Rust >= 1.74.0
16+
- Rust >= 1.83.0
1717
- Basically, our MSRV follows the one of [PyO3](https://github.com/PyO3/pyo3)
1818
- Python >= 3.7
1919
- Python 3.6 support was dropped from 0.16

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)