-
Notifications
You must be signed in to change notification settings - Fork 1
/
Cargo.toml
67 lines (57 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
65
66
67
[package]
name = "const-decimal"
description = "Integer-backed decimals with constant precision"
version = "0.3.0"
edition = "2021"
license = "MIT OR Apache-2.0"
authors = ["Oliver Chalk"]
readme = "README.md"
repository = "https://github.com/OliverNChalk/const-decimal"
homepage = "https://github.com/OliverNChalk/const-decimal"
keywords = ["decimal", "math", "finance"]
categories = ["finance", "mathematics"]
[lints.clippy]
pedantic = "warn"
# See `clippy.toml`.
disallowed_methods = "warn"
arithmetic_side_effects = "warn"
match_bool = "allow"
module_name_repetitions = "allow"
[features]
serde = ["dep:serde"]
borsh = ["dep:borsh"]
malachite = ["dep:malachite"]
[dependencies]
borsh = { version = "1.5.1", features = ["derive"], optional = true }
malachite = { version = "0.4.16", optional = true }
num-traits = "0.2.19"
paste = "1.0.15"
ruint = "1.12.3"
serde = { version = "~1.0", features = ["derive"], optional = true }
thiserror = "1.0.63"
[dev-dependencies]
criterion = "0.5.1"
expect-test = "1.5.0"
fpdec = "0.11.0"
malachite = "0.4.16"
proptest = "1.5.0"
[profile.release]
opt-level = 3
debug = true
[profile.paranoid]
inherits = "release"
overflow-checks = true
debug-assertions = true
[profile.performance]
inherits = "release"
lto = "fat"
codegen-units = 1
incremental = false
[[bench]]
name = "main"
path = "benches/main.rs"
harness = false
[[bench]]
name = "fpdec_comparison"
path = "benches/fpdec_comparison.rs"
harness = false