-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathCargo.toml
More file actions
48 lines (43 loc) · 1.89 KB
/
Cargo.toml
File metadata and controls
48 lines (43 loc) · 1.89 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
[package]
name = "quantity"
version = "0.13.0"
authors = [
"Philipp Rehner <prehner@ethz.ch>",
"Gernot Bauer <bauer@itt.uni-stuttgart.de>",
]
rust-version = "1.87"
edition = "2024"
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"]
[workspace]
members = ["si-units", "example/extend_quantity"]
[dependencies]
num-traits = "0.2"
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 }
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 }
[features]
default = []
## Use generalized (hyper-)dual numbers from the [num-dual] crate as value of a quantity.
num-dual = ["dep:num-dual", "nalgebra"]
## 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/nalgebra", "ndarray", "nalgebra"]
## Enable approximate comparisons through the [approx] crate.
approx = ["dep:approx", "ndarray?/approx"]