-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
127 lines (95 loc) · 2.37 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
[workspace]
members = ["dana_macros"]
default-members = ["dana_macros", "."]
[workspace.package]
description = "Compile-time dimensional analysis via generic types."
version = "0.4.0"
authors = ["J.S. Dreim <jsdreim@protonmail.com>"]
repository = "https://github.com/jsdreim/dana"
documentation = "https://docs.rs/dana"
readme = "README.md"
include = [
"CHANGELOG.md", "LICENSE",
"/src/**/*.rs",
"/tests/**/*.rs", "/tests/**/*.stderr",
"/benches/**/*.rs",
"!/**/_*.rs",
"!/.idea/**", "!/.vscode/**",
]
categories = ["development-tools", "mathematics", "science", "no-std"]
keywords = ["dimensional-analysis", "quantities", "units", "library", "no_std"]
edition = "2021"
license = "Apache-2.0"
[workspace.lints.rust]
missing_docs = "warn"
[workspace.dependencies.num-traits]
version = "0.2.19"
features = ["libm"]
default-features = false
[workspace.dependencies.dana_macros]
# NOTE: Keep dependency version in sync with workspace version.
# TODO: Can this be picked automatically?
version = "=0.4.0"
path = "dana_macros"
[package]
name = "dana"
description.workspace = true
version.workspace = true
authors.workspace = true
repository.workspace = true
documentation.workspace = true
readme.workspace = true
include.workspace = true
categories.workspace = true
keywords.workspace = true
edition.workspace = true
license.workspace = true
[lints]
workspace = true
[dependencies]
dana_macros.workspace = true
num-traits.workspace = true
thiserror-no-std = "2.0.2"
typenum = "1.17.0"
[dependencies.chrono]
version = "0.4.38"
default-features = false
optional = true
[dependencies.rand]
version = "0.8.5"
default-features = false
optional = true
[dependencies.serde]
version = "1.0.203"
features = ["derive"]
default-features = false
optional = true
[dev-dependencies]
rand = "0.8.5"
serde_json = "1.0.117"
trybuild = "1.0.96"
[dev-dependencies.criterion]
version = "0.5.1"
features = ["csv_output", "html_reports"]
[lib]
bench = false
[[bench]]
name = "qty_basic"
harness = false
[[bench]]
name = "qty_capacitor"
harness = false
[[bench]]
name = "qty_simd"
harness = false
required-features = ["rand", "simd"]
[features]
default = []
# Features that can be enabled on the stable toolchain:
stable = ["chrono", "rand", "serde"]
chrono = ["dep:chrono"]
rand = ["dep:rand"]
serde = ["dep:serde"]
# Features that require unstable functionality:
unstable = ["simd"]
simd = []