-
-
Notifications
You must be signed in to change notification settings - Fork 25
/
Cargo.toml
64 lines (42 loc) · 1.42 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
[package]
name = "fraction"
version = "0.16.0"
authors = ["dnsl48 <[email protected]>"]
description = "Lossless fractions and decimals; drop-in float replacement"
keywords = ["fraction", "decimal", "float", "numeric"]
categories = ["data-structures"]
license = "MIT/Apache-2.0"
homepage = "https://github.com/dnsl48/fraction.git"
repository = "https://github.com/dnsl48/fraction.git"
readme = "README.md"
documentation = "https://docs.rs/fraction/"
exclude = ["src/tests/division/*"]
[package.metadata.docs.rs]
all-features = true
[profile.test]
opt-level = 3
[dependencies]
num = { version = "0.4.3", default-features = false }
byteorder = { version = "1", optional = true }
bytes = { version = "1", optional = true }
postgres-types = { version = "0.2", optional = true }
serde = { version = "1", optional = true }
serde_derive = { version = "1", optional = true }
juniper = { version = "0.15", optional = true }
lazy_static = { version = "1", optional = true }
[features]
default = ["with-bigint", "with-decimal", "with-dynaint"]
with-bigint = ["num/num-bigint", "num/std", "lazy_static"]
with-decimal = []
with-dynaint = []
with-approx = ["with-bigint"]
with-juniper-support = ["juniper"]
with-postgres-support = ["postgres-types", "byteorder", "bytes"]
with-serde-support = ["serde", "serde_derive", "num/serde"]
with-unicode = []
[dev-dependencies]
criterion = "0.5"
rand = "0.8"
[[bench]]
name = "bench_fraction"
harness = false