-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
44 lines (40 loc) · 1.7 KB
/
Cargo.toml
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
[package]
name = "quantity"
version = "0.10.1"
authors = [
"Philipp Rehner <[email protected]>",
"Gernot Bauer <[email protected]>",
]
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"]
[workspace]
members = ["si-units", "example/extend_quantity"]
[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.23", optional = true }
numpy = { version = "0.23", optional = true }
## Use generalized (hyper-)dual numbers from the [num-dual] crate as value of a quantity.
num-dual = { version = "0.11", 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"]