-
Notifications
You must be signed in to change notification settings - Fork 8
/
Cargo.toml
65 lines (57 loc) · 1.32 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
[package]
name = "decorum"
version = "0.3.1"
edition = "2018"
license = "MIT"
readme = "README.md"
authors = ["Sean Olson <olson.sean.k@gmail.com>"]
repository = "https://github.com/olson-sean-k/decorum"
description = "Total ordering, equivalence, hashing, and constraints for floating-point types."
keywords = [
"finite",
"float",
"hash",
"nan",
"ordering"
]
categories = [
"mathematics",
"no-std",
"rust-patterns"
]
[package.metadata.docs.rs]
all-features = true
# Enable KaTeX support.
rustdoc-args = [
"--html-in-header",
"doc/katex-header.html"
]
[features]
default = ["approx", "serialize-serde", "std"]
serialize-serde = ["serde", "serde_derive"]
std = ["approx/std", "num-traits/std", "serde/std", "thiserror"]
[dependencies.approx]
version = "^0.5.0"
default-features = false
features = []
optional = true
[dependencies.num-traits]
version = "^0.2.0"
default-features = false
features = []
[dependencies.serde]
version = "1.0"
default-features = false
optional = true
[dependencies.serde_derive]
version = "1.0"
default-features = false
optional = true
# TODO: Use `thiserror` in `no_std` environments when support lands.
# See https://github.com/dtolnay/thiserror/pull/64
[dependencies.thiserror]
version = "^1.0.0"
optional = true
[dev-dependencies]
num = "^0.4.0"
serde_json = "1.0"