Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ jobs:
with:
python-version: "3.14"
- name: Install Rust
uses: dtolnay/rust-toolchain@1.83
uses: dtolnay/rust-toolchain@1.85
- uses: Swatinem/rust-cache@v2
with:
workspaces: examples/simple
Expand Down
8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ authors = [
]
description = "PyO3-based Rust bindings of the NumPy C-API"
documentation = "https://docs.rs/numpy"
edition = "2021"
rust-version = "1.83"
edition = "2024"
rust-version = "1.85"
repository = "https://github.com/PyO3/rust-numpy"
categories = ["api-bindings", "development-tools::ffi", "science"]
keywords = ["python", "numpy", "ffi", "pyo3"]
Expand Down Expand Up @@ -58,7 +58,7 @@ all-features = true

[lints.rust]
# We usually want to make the GIL lifetime explicit.
elided-lifetimes-in-paths = "deny"
elided_lifetimes_in_paths = "deny"

[lints.clippy]
needless-lifetimes = "allow"
needless_lifetimes = "allow"
4 changes: 2 additions & 2 deletions benches/array.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
use std::{hint::black_box, ops::Range};

use criterion::{criterion_group, criterion_main, BenchmarkId, Criterion, Throughput};
use criterion::{BenchmarkId, Criterion, Throughput, criterion_group, criterion_main};
use numpy::{PyArray1, PyArray2, PyArray3};
use pyo3::{types::PyAnyMethods, Bound, IntoPyObjectExt, Python};
use pyo3::{Bound, IntoPyObjectExt, Python, types::PyAnyMethods};

fn extract_success(c: &mut Criterion) {
Python::attach(|py| {
Expand Down
4 changes: 2 additions & 2 deletions benches/array_like.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
use std::hint::black_box;

use criterion::{criterion_group, criterion_main, BenchmarkId, Criterion, Throughput};
use criterion::{BenchmarkId, Criterion, Throughput, criterion_group, criterion_main};
use numpy::{PyArrayLike1, PyArrayLike2, PyArrayLike3};
use pyo3::{
types::{PyAnyMethods, PyDict},
Python,
types::{PyAnyMethods, PyDict},
};

fn extract_array_like_1(c: &mut Criterion) {
Expand Down
2 changes: 1 addition & 1 deletion benches/borrow.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use std::hint::black_box;

use criterion::{criterion_group, criterion_main, Criterion};
use criterion::{Criterion, criterion_group, criterion_main};
use numpy::{PyArray, PyArrayMethods};
use pyo3::Python;

Expand Down
2 changes: 1 addition & 1 deletion examples/linalg/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "rust-linalg"
version = "0.1.0"
authors = ["Yuji Kanagawa <yuji.kngw.80s.revive@gmail.com>"]
edition = "2021"
edition = "2024"

[lib]
crate-type = ["cdylib"]
Expand Down
2 changes: 1 addition & 1 deletion examples/linalg/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
mod rust_linalg {
use ndarray_linalg::solve::Inverse;
use numpy::{IntoPyArray, PyArray2, PyReadonlyArray2};
use pyo3::{exceptions::PyRuntimeError, pyfunction, Bound, PyResult, Python};
use pyo3::{Bound, PyResult, Python, exceptions::PyRuntimeError, pyfunction};

#[pyfunction]
fn inv<'py>(
Expand Down
2 changes: 1 addition & 1 deletion examples/parallel/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "rust-parallel"
version = "0.1.0"
authors = ["Yuji Kanagawa <yuji.kngw.80s.revive@gmail.com>"]
edition = "2021"
edition = "2024"

[lib]
crate-type = ["cdylib"]
Expand Down
2 changes: 1 addition & 1 deletion examples/parallel/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ extern crate blas_src;
mod rust_parallel {
use numpy::ndarray::Zip;
use numpy::{IntoPyArray, PyArray1, PyReadonlyArray1, PyReadonlyArray2};
use pyo3::{pyfunction, Bound, Python};
use pyo3::{Bound, Python, pyfunction};

#[pyfunction]
fn rows_dot<'py>(
Expand Down
2 changes: 1 addition & 1 deletion examples/simple/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "rust-ext"
version = "0.1.0"
authors = ["Toshiki Teramura <toshiki.teramura@gmail.com>", "Yuji Kanagawa <yuji.kngw.80s.revive@gmail.com>"]
edition = "2021"
edition = "2024"

[lib]
crate-type = ["cdylib"]
Expand Down
4 changes: 2 additions & 2 deletions examples/simple/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
mod rust_ext {
use numpy::ndarray::{Array1, ArrayD, ArrayView1, ArrayViewD, ArrayViewMutD, Zip};
use numpy::{
datetime::{units, Timedelta},
Complex64, IntoPyArray, PyArray1, PyArrayDyn, PyArrayMethods, PyReadonlyArray1,
PyReadonlyArrayDyn, PyReadwriteArray1, PyReadwriteArrayDyn,
datetime::{Timedelta, units},
};
use pyo3::{
Bound, FromPyObject, Py, PyAny, PyResult, Python,
exceptions::PyIndexError,
pyfunction,
types::{PyDict, PyDictMethods},
Bound, FromPyObject, Py, PyAny, PyResult, Python,
};
use std::ops::Add;

Expand Down
Loading
Loading