[[bench]]
harness = false
name = "comparison"
path = "benches/comparison.rs"
[[bench]]
name = "lib_benches"
path = "benches/lib_benches.rs"
[dependencies.arbitrary]
default-features = false
optional = true
version = "1.0"
[dependencies.arrayvec]
default-features = false
version = "0.7"
[dependencies.borsh]
default-features = false
features = ["derive", "unstable__schema"]
optional = true
version = "1.1.1"
[dependencies.bytes]
default-features = false
optional = true
version = "1.0"
[dependencies.diesel]
default-features = false
optional = true
version = "2.2"
[dependencies.ndarray]
default-features = false
optional = true
version = "0.15.6"
[dependencies.num-traits]
default-features = false
features = ["i128"]
version = "0.2"
[dependencies.postgres-types]
default-features = false
optional = true
version = "0.2"
[dependencies.proptest]
default-features = false
features = ["std"]
optional = true
version = "1.0"
[dependencies.rand]
default-features = false
optional = true
version = "0.8"
[dependencies.rkyv]
default-features = false
features = ["size_32", "std"]
optional = true
version = "0.7.42"
[dependencies.rocket]
default-features = false
optional = true
version = "0.5.0-rc.3"
[dependencies.serde]
default-features = false
optional = true
version = "1.0"
[dependencies.serde_json]
default-features = false
optional = true
version = "1.0"
[dependencies.tokio-postgres]
default-features = false
optional = true
version = "0.7"
[dev-dependencies.bincode]
default-features = false
version = "1.0"
[dev-dependencies.bytes]
default-features = false
version = "1.0"
[dev-dependencies.criterion]
default-features = false
version = "0.5"
[dev-dependencies.csv]
version = "1"
[dev-dependencies.futures]
default-features = false
version = "0.3"
[dev-dependencies.postgres]
default-features = false
version = "0.19"
[dev-dependencies.rand]
default-features = false
features = ["getrandom"]
version = "0.8"
[dev-dependencies.rust_decimal_macros]
default-features = false
version = "1.33"
[dev-dependencies.serde]
default-features = false
features = ["derive"]
version = "1.0"
[dev-dependencies.serde_json]
version = "1.0"
[dev-dependencies.tokio]
default-features = false
features = ["macros", "rt-multi-thread", "test-util"]
version = "1.0"
[dev-dependencies.tokio-postgres]
default-features = false
version = "0.7"
[dev-dependencies.version-sync]
default-features = false
features = ["html_root_url_updated", "markdown_deps_updated"]
version = "0.9"
[features]
borsh = ["dep:borsh", "std"]
c-repr = []
db-diesel-mysql = ["diesel/mysql", "std"]
db-diesel-postgres = ["diesel/postgres", "std"]
db-diesel2-mysql = ["db-diesel-mysql"]
db-diesel2-postgres = ["db-diesel-postgres"]
db-postgres = ["dep:bytes", "dep:postgres-types", "std"]
db-tokio-postgres = ["dep:bytes", "dep:postgres-types", "std"]
default = ["serde", "std"]
legacy-ops = []
maths = []
maths-nopanic = ["maths"]
ndarray = ["dep:ndarray"]
proptest = ["dep:proptest"]
rand = ["dep:rand"]
rkyv = ["dep:rkyv"]
rkyv-safe = ["rkyv/validation"]
rocket-traits = ["dep:rocket"]
rust-fuzz = ["dep:arbitrary"]
serde = ["dep:serde"]
serde-arbitrary-precision = ["serde-with-arbitrary-precision"]
serde-bincode = ["serde-str"]
serde-float = ["serde-with-float"]
serde-str = ["serde-with-str"]
serde-with-arbitrary-precision = ["serde", "serde_json/arbitrary_precision", "serde_json/std"]
serde-with-float = ["serde"]
serde-with-str = ["serde"]
std = ["arrayvec/std", "borsh?/std", "bytes?/std", "rand?/std", "rkyv?/std", "serde?/std", "serde_json?/std"]
tokio-pg = ["db-tokio-postgres"]
[lib]
name = "rust_decimal"
path = "src/lib.rs"
[package]
authors = ["Paul Mason <paul@form1.co.nz>"]
autobenches = false
autobins = false
autoexamples = false
autotests = false
build = "build.rs"
categories = ["science", "mathematics", "data-structures"]
description = "Decimal number implementation written in pure Rust suitable for financial and fixed-precision calculations."
documentation = "https://docs.rs/rust_decimal/"
edition = "2021"
exclude = ["tests/generated/*"]
keywords = ["decimal", "financial", "fixed", "precision", "number"]
license = "MIT"
name = "rust_decimal"
readme = "README.md"
repository = "https://github.com/paupino/rust-decimal"
rust-version = "1.60"
version = "1.36.0"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
[[test]]
name = "decimal_tests"
path = "tests/decimal_tests.rs"
[[test]]
name = "macros"
path = "tests/macros.rs"
[[test]]
name = "version-numbers"
path = "tests/version-numbers.rs"