forked from ricardoferreirades/typed-money
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
52 lines (44 loc) · 1.43 KB
/
Cargo.toml
File metadata and controls
52 lines (44 loc) · 1.43 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
[package]
name = "typed-money"
version = "0.2.0"
edition = "2021"
authors = ["Ricardo Ferreira <ricardoferreirades@gmail.com>"]
license = "MIT OR Apache-2.0"
description = "A type-safe money library for Rust that prevents currency mixing bugs at compile time"
repository = "https://github.com/ricardoferreirades/typed-money"
homepage = "https://github.com/ricardoferreirades/typed-money"
documentation = "https://docs.rs/typed-money"
readme = "README.md"
keywords = ["money", "currency", "finance", "decimal", "type-safe"]
categories = ["data-structures", "mathematics"]
[package.metadata.docs.rs]
all-features = false
features = ["serde_support", "conversion_tracking"]
rustdoc-args = ["--cfg", "docsrs", "--document-private-items"]
cargo-args = ["--examples"]
[lib]
name = "typed_money"
path = "src/lib.rs"
[dependencies]
rust_decimal = { version = "1.33", optional = true }
bigdecimal = { version = "0.4", optional = true }
serde = { version = "1.0", optional = true, features = ["derive"] }
[dev-dependencies]
serde_json = "1.0"
arbitrary = { version = "1.3", features = ["derive"] }
criterion = { version = "0.5", features = ["html_reports"] }
[[bench]]
name = "arithmetic"
harness = false
[[bench]]
name = "conversions"
harness = false
[[bench]]
name = "rounding"
harness = false
[features]
default = ["use_rust_decimal"]
use_rust_decimal = ["dep:rust_decimal"]
use_bigdecimal = ["dep:bigdecimal"]
conversion_tracking = []
serde_support = ["dep:serde"]