forked from paupino/rust-decimal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
56 lines (51 loc) · 2.06 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
[package]
authors = ["Paul Mason <[email protected]>"]
categories = ["science","data-structures"]
description = "A Decimal Implementation written in pure Rust suitable for financial calculations."
documentation = "https://docs.rs/rust_decimal/"
edition = "2018"
keywords = ["decimal","financial","fixed","precision"]
license = "MIT"
name = "rust_decimal"
readme = "./README.md"
repository = "https://github.com/paupino/rust-decimal"
version = "1.14.3"
exclude = [ "tests/generated/*" ]
[package.metadata.docs.rs]
all-features = true
[dependencies]
arbitrary = { default-features = false, optional = true, version = "1.0" }
arrayvec = { default-features = false, version = "0.5" }
byteorder = { default-features = false, optional = true, version = "1.3" }
bytes = { default-features = false, optional = true, version = "1.0" }
diesel = { default-features = false, features = ["postgres"], optional = true, version = "1.4" }
num-traits = { default-features = false, features = ["i128"], version = "0.2" }
postgres = { default-features = false, optional = true, version = "0.19" }
serde = { default-features = false, optional = true, version = "1.0" }
serde_json = { default-features = false, optional = true, version = "1.0" }
tokio-postgres = { default-features = false, optional = true, version = "0.7" }
[dev-dependencies]
bincode = "1.3"
bytes = "1.0"
csv = "1"
futures = "0.3"
serde_derive = "1.0"
serde_json = "1.0"
tokio = { features = ["rt-multi-thread", "test-util", "macros"], version = "1.0" }
[features]
c-repr = [] # Force Decimal to be repr(C)
db-diesel-postgres = ["diesel", "std"]
db-postgres = ["byteorder", "bytes", "postgres", "std"]
db-tokio-postgres = ["byteorder", "bytes", "postgres", "std", "tokio-postgres"]
default = ["serde", "std"]
legacy-ops = []
maths = []
rust-fuzz = ["arbitrary"]
serde-bincode = ["serde-str"] # Backwards compatability
serde-float = ["serde"]
serde-str = ["serde"]
serde-arbitrary-precision = ["serde", "serde_json/arbitrary_precision"]
std = ["arrayvec/std"]
tokio-pg = ["db-tokio-postgres"] # Backwards compatability
[workspace]
members = [".", "./macros"]