-
Notifications
You must be signed in to change notification settings - Fork 10
/
Cargo.toml
66 lines (61 loc) · 1.51 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
[package]
name = "quantities"
version = "0.13.3"
edition = "2021"
authors = ["Michael Amrhein <michael@adrhinum.de>"]
description = "Unit-safe computations with quantities."
readme = "README.md"
homepage = "https://github.com/mamrhein/quantities.rs"
repository = "https://github.com/mamrhein/quantities.rs"
documentation = "https://docs.rs/quantities/"
license-file = "LICENSE.TXT"
keywords = ["quantity", "unit", "unit-safe", "measure", "arithmetics"]
categories = ["data-structures", "mathematics"]
rust-version = "1.75.0"
[dependencies]
qty-macros = { version = "0.13.0", path = "qty-macros" }
fpdec = { version = "0.11", optional = true }
serde = { version = "1", features = ["derive"], optional = true }
[dev-dependencies]
trybuild = "1"
serde = "1"
serde_json = { version = "1.0" }
[features]
default = ["std"]
std = []
serde = ["dep:serde", "fpdec?/serde-as-str"]
mass = []
length = []
duration = []
area = ["length"]
volume = ["area"]
speed = ["length", "duration"]
acceleration = ["speed", "duration"]
force = ["mass", "acceleration"]
energy = ["force", "length"]
power = ["energy", "duration"]
frequency = ["duration"]
datavolume = []
datathroughput = ["datavolume", "duration"]
temperature = []
# used for rustdoc only
doc = [
"mass",
"length",
"duration",
"area",
"volume",
"speed",
"acceleration",
"force",
"energy",
"power",
"frequency",
"datavolume",
"datathroughput",
"temperature",
]
[workspace]
members = [".", "qty-macros", "astronimical_quantities"]
[package.metadata.docs.rs]
features = ["doc"]