-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathCargo.toml
More file actions
81 lines (72 loc) · 1.84 KB
/
Cargo.toml
File metadata and controls
81 lines (72 loc) · 1.84 KB
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
[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]
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_precision_loss = "allow"
cast_sign_loss = "allow"
# See `clippy.toml`.
disallowed_methods = "warn"
get_first = "allow"
inline-always = "allow"
match_bool = "allow"
missing_const_for_fn = "warn"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
needless-raw-string-hashes = "allow"
pedantic = { level = "warn", priority = -1 }
similar_names = "allow"
single_match_else = "allow"
struct_excessive_bools = "allow"
todo = "warn"
too_many_lines = "allow"
trivially_copy_pass_by_ref = "warn"
[features]
serde = ["dep:serde"]
borsh = ["dep:borsh"]
malachite = ["dep:malachite"]
[dependencies]
borsh = { version = "1.5.1", features = ["derive"], optional = true }
malachite = { version = "0.8", optional = true }
num-traits = "0.2.19"
paste = "1.0.15"
ruint = "1.12.3"
serde = { version = "~1.0", features = ["derive"], optional = true }
thiserror = "2"
[dev-dependencies]
criterion = "0.8.1"
expect-test = "1.5.0"
fpdec = "0.13"
malachite = "0.8"
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