[package]
edition = "2024"
rust-version = "1.85.1"
name = "decimal64"
version = "0.0.8"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Fast fixed point arithmetic that only uses u64 as internal representation."
documentation = "https://docs.rs/decimal64"
readme = "README.md"
keywords = [
"decimal",
"fixed",
"precision",
"number",
"low-latency",
]
categories = [
"finance",
"science",
"data-structures",
"mathematics",
"parsing",
]
license = "MIT"
repository = "https://github.com/HaveFunTrading/decimal64"
[features]
default = []
serde = ["dep:serde"]
[lib]
name = "decimal64"
path = "src/lib.rs"
[[test]]
name = "serde"
path = "tests/serde.rs"
[[bench]]
name = "f64"
path = "benches/f64.rs"
harness = false
[[bench]]
name = "math"
path = "benches/math.rs"
harness = false
[[bench]]
name = "mul"
path = "benches/mul.rs"
harness = false
[[bench]]
name = "parse"
path = "benches/parse.rs"
harness = false
[[bench]]
name = "rescale"
path = "benches/rescale.rs"
harness = false
[dependencies.serde]
version = "1.0.217"
features = ["derive"]
optional = true
[dependencies.thiserror]
version = "2.0.12"
[dev-dependencies.anyhow]
version = "1.0.97"
[dev-dependencies.criterion]
version = "0.5.1"
[dev-dependencies.rstest]
version = "0.25.0"
[dev-dependencies.rstest_macros]
version = "0.25.0"
[dev-dependencies.rust_decimal]
version = "1.36.0"
[dev-dependencies.serde_json]
version = "1.0.140"