Skip to content

Commit e08e203

Browse files
authored
Merge pull request #516 from light-curve/msrv-1.85
MSRV 1.85 and Rust Edition 2024
2 parents f70c950 + 31ce738 commit e08e203

File tree

8 files changed

+94
-75
lines changed

8 files changed

+94
-75
lines changed

CHANGELOG.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
### Added
1111

12-
- Mark the module as no-GIL, which enables free-threaded Python (can be built from source, not provided so far via PyPI/conda) https://github.com/light-curve/light-curve-python/pull/499
12+
- Mark the module as no-GIL, which enables free-threaded Python (can be built from source, not provided so far via
13+
PyPI/conda) https://github.com/light-curve/light-curve-python/pull/499
1314

1415
### Changed
1516

16-
- **PyPI wheels change**: bump Musl PyPI wheels compatibility from musllinux 1.1 to 1.2 https://github.com/light-curve/light-curve-python/pull/503
17+
- **PyPI wheels change**: bump Musl PyPI wheels compatibility from musllinux 1.1 to
18+
1.2 https://github.com/light-curve/light-curve-python/pull/503
19+
- **Build breaking**: minimum supported Rust version (MSRV) is changed from 1.67 to 1.85
20+
- We also migrated from Rust edition 2021 to 2025
1721
- Bump both `PyO3` and `rust-numpy` to v0.24 https://github.com/light-curve/light-curve-python/pull/499
1822

1923
### Deprecated
@@ -26,7 +30,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2630

2731
### Fixed
2832

29-
- Fix error messages for invalid inputs https://github.com/light-curve/light-curve-python/issues/505 https://github.com/light-curve/light-curve-python/pull/510
33+
- Fix error messages for invalid
34+
inputs https://github.com/light-curve/light-curve-python/issues/505 https://github.com/light-curve/light-curve-python/pull/510
3035

3136
### Security
3237

light-curve/Cargo.lock

Lines changed: 46 additions & 39 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

light-curve/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ description = "Feature extractor from noisy time series"
1111
readme = "README.md"
1212
repository = "https://github.com/light-curve/light-curve-python"
1313
license = "GPL-3.0-or-later"
14-
edition = "2021"
15-
rust-version = "1.67"
14+
edition = "2024"
15+
rust-version = "1.85"
1616

1717
[lib]
1818
name = "light_curve"
@@ -67,4 +67,4 @@ features = ["serde"]
6767

6868
[dependencies.light-curve-feature]
6969
version = "0.8.1"
70-
default_features = false
70+
default-features = false

light-curve/src/dmdt.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use crate::np_array::Arr;
55

66
use crate::errors::Exception::ValueError;
77
use conv::{ApproxFrom, ApproxInto, ConvAsUtil};
8-
use enumflags2::{bitflags, BitFlags};
8+
use enumflags2::{BitFlags, bitflags};
99
use light_curve_dmdt as lcdmdt;
1010
use light_curve_dmdt::{Grid, GridTrait};
1111
use ndarray::IntoNdProducer;
@@ -477,7 +477,7 @@ where
477477
_ => {
478478
return Err(Exception::ValueError(String::from(
479479
"if drop_nobs is float, it must be in [0.0, 1.0)",
480-
)))
480+
)));
481481
}
482482
},
483483
};
@@ -498,7 +498,7 @@ where
498498
None => {
499499
return Err(Exception::RuntimeError(String::from(
500500
"dropping is not required: drop_nobs = 0",
501-
)))
501+
)));
502502
}
503503
};
504504
let drop_nobs = match drop_nobs {
@@ -945,7 +945,7 @@ impl DmDt {
945945
_ => {
946946
return Err(Exception::ValueError(
947947
"dt_type must be 'auto', 'linear', 'log' or 'asis'".to_owned(),
948-
))
948+
));
949949
}
950950
};
951951
let grid_f32: Grid<f32> = match grid_f64 {
@@ -955,7 +955,7 @@ impl DmDt {
955955
_ => {
956956
return Err(Exception::NotImplementedError(
957957
"this type of grid is not implemented".into(),
958-
))
958+
));
959959
}
960960
};
961961
Ok((grid_f32, grid_f64))

light-curve/src/errors.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1+
use pyo3::PyErr;
12
use pyo3::exceptions::{
23
PyIndexError, PyNotImplementedError, PyRuntimeError, PyTypeError, PyValueError,
34
};
45
use pyo3::import_exception;
5-
use pyo3::PyErr;
66
use std::fmt::Debug;
77
use std::result::Result;
88
use thiserror::Error;

0 commit comments

Comments
 (0)