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
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.14.0] - 2026-06-14
### Packaging
- Updated `nalgebra` dependency to 0.35.
- Updated `pyo3` and `numpy` dependencies to 0.29.
- Updated `num-dual` dependency to 0.14.
- Updated minimum supported Rust version to 1.89.

## [0.13.2] - 2026-05-21
### Added
- Made `Quantity::new` available in `const` contexts.
Expand Down
12 changes: 6 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[package]
name = "quantity"
version = "0.13.2"
version = "0.14.0"
authors = [
"Philipp Rehner <prehner@ethz.ch>",
"Gernot Bauer <bauer@itt.uni-stuttgart.de>",
]
rust-version = "1.87"
rust-version = "1.89"
edition = "2024"
license = "MIT OR Apache-2.0"
description = "Representation of quantites, i.e. of unit valued scalars and arrays."
Expand All @@ -29,11 +29,11 @@ document-features = "0.2"
## Use N-dimensional arrays from the [ndarray] crate as value of a quantity.
ndarray = { version = "0.17", optional = true }
## Use dynamic or static arrays from the [nalgebra] crate as value of a quantity.
nalgebra = { version = "0.34", optional = true }
nalgebra = { version = "0.35", optional = true }
approx = { version = "0.5", optional = true }
pyo3 = { version = "0.27", optional = true }
numpy = { version = "0.27", optional = true }
num-dual = { version = "0.13", optional = true }
pyo3 = { version = "0.29", optional = true }
numpy = { version = "0.29", optional = true }
num-dual = { version = "0.14", optional = true }

[dev-dependencies]
approx = "0.5"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Add this to your `Cargo.toml`:

```
[dependencies]
quantity = "0.13"
quantity = "0.14"
```

## Examples
Expand Down
4 changes: 2 additions & 2 deletions example/extend_quantity/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ name = "extend_quantity"
crate-type = ["cdylib"]

[dependencies]
pyo3 = { version = "0.27", features = ["extension-module", "abi3-py310"] }
pyo3 = { version = "0.29", features = ["extension-module", "abi3-py310"] }
quantity = { version = "*", path = "../../", features = ["python_numpy"] }
ndarray = "0.17"
nalgebra = "0.34"
nalgebra = "0.35"
6 changes: 3 additions & 3 deletions si-units/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ authors = [
"Philipp Rehner <prehner@ethz.ch>",
"Gernot Bauer <bauer@itt.uni-stuttgart.de>",
]
rust-version = "1.87"
rust-version = "1.89"
edition = "2024"
license = "MIT OR Apache-2.0"
description = "Representation of SI unit valued scalars and arrays."
Expand All @@ -22,7 +22,7 @@ crate-type = ["cdylib"]

[dependencies]
ndarray = "0.17"
numpy = "0.27"
pyo3 = { version = "0.27", features = ["extension-module", "abi3-py310"] }
numpy = "0.29"
pyo3 = { version = "0.29", features = ["extension-module", "abi3-py310"] }
regex = "1.12"
thiserror = "2.0"
6 changes: 3 additions & 3 deletions si-units/src/extra_units.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use pyo3::exceptions::PyTypeError;
use pyo3::prelude::*;
use pyo3::types::{PyFloat, PyNotImplemented};

#[pyclass(module = "si_units")]
#[pyclass(module = "si_units", from_py_object)]
#[derive(Clone, Copy)]
pub struct Celsius;

Expand All @@ -25,7 +25,7 @@ impl Celsius {
}
}

#[pyclass(module = "si_units")]
#[pyclass(module = "si_units", from_py_object)]
#[derive(Clone, Copy)]
pub struct Debye(pub f64);

Expand Down Expand Up @@ -55,7 +55,7 @@ impl Debye {
}
}

#[pyclass(module = "si_units")]
#[pyclass(module = "si_units", from_py_object)]
#[derive(Clone, Copy)]
pub struct Angle(pub(crate) f64);

Expand Down
2 changes: 1 addition & 1 deletion src/ad.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use num_dual::{
};
use std::ops::Sub;

impl<D, F, T: DualStruct<D, F>, U> DualStruct<D, F> for Quantity<T, U> {
impl<F, T: DualStruct<F>, U> DualStruct<F> for Quantity<T, U> {
type Real = Quantity<T::Real, U>;
type Inner = Quantity<T::Inner, U>;

Expand Down
Loading