[package] name = "quantity" version = "0.9.0" authors = [ "Philipp Rehner ", "Gernot Bauer ", ] rust-version = "1.81" edition = "2021" license = "MIT OR Apache-2.0" description = "Representation of quantites, i.e. of unit valued scalars and arrays." homepage = "https://github.com/itt-ustutt/quantity" readme = "README.md" repository = "https://github.com/itt-ustutt/quantity" keywords = ["physics", "units", "SI"] categories = ["data-structures", "science"] exclude = ["/.github/*", "*.ipynb", "/docs"] [package.metadata.docs.rs] features = ["python_numpy", "num-dual", "approx"] rustdoc-args = ["--html-in-header", "./src/docs-header.html"] [dependencies] typenum = "1.17" document-features = "0.2" ## Use N-dimensional arrays from the [ndarray] crate as value of a quantity. ndarray = { version = "0.16", optional = true} approx = { version = "0.5", optional = true } pyo3 = { version = "0.22", optional = true } numpy = { version = "0.22", optional = true } ## Use generalized (hyper-)dual numbers from the [num-dual] crate as value of a quantity. num-dual = { version = "0.10", optional = true } [features] default = [] ## Directly use (scalar) quantities in Python interfaces through [pyo3] and the [si-units](https://pypi.org/project/si-units/) package. python = ["pyo3"] ## Use scalar and array quantities in Python interfaces through [pyo3], [numpy], and the [si-units](https://pypi.org/project/si-units/) package. python_numpy = ["python", "numpy", "ndarray"] ## Enable approximate comparisons through the [approx] crate. approx = ["dep:approx", "ndarray?/approx"]