Cargo Features

Quantity has no features set by default.

[dependencies]
quantity = { version = "0.9.0", features = ["python", "python_numpy", "approx", "num-dual"] }
python python_numpy? = pyo3

Directly use (scalar) quantities in Python interfaces through [pyo3] and the si-units package.

python_numpy = ndarray, numpy, python

Use scalar and array quantities in Python interfaces through [pyo3], [numpy], and the si-units package.

approx

Enable approximate comparisons through the [approx] crate.

Enables approx and approx of optional ndarray

Use N-dimensional arrays from the [ndarray] crate as value of a quantity.

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

ndarray python_numpy?
pyo3 python?

Enables pyo3 ^0.22

numpy python_numpy?
num-dual implicit feature

Enables num-dual

Use generalized (hyper-)dual numbers from the [num-dual] crate as value of a quantity.