[package]
edition = "2021"
rust-version = "1.81.0"
name = "moneta"
version = "0.7.0"
authors = ["Michael Amrhein <michael@adrhinum.de>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Currency-safe computations with money amounts."
homepage = "https://github.com/mamrhein/money.rs"
documentation = "https://docs.rs/moneta/"
readme = "README.md"
keywords = [
"money",
"currency",
"exchange",
]
categories = [
"data-structures",
"mathematics",
]
license-file = "LICENSE.TXT"
repository = "https://github.com/mamrhein/money.rs"
[features]
default = ["std"]
serde = [
"dep:serde",
"quantities/serde",
]
std = []
[lib]
name = "moneta"
path = "src/lib.rs"
[[test]]
name = "test_custom_currency"
path = "tests/test_custom_currency.rs"
[[test]]
name = "test_exchange_rate"
path = "tests/test_exchange_rate.rs"
[[test]]
name = "test_money"
path = "tests/test_money.rs"
[[test]]
name = "test_serde"
path = "tests/test_serde.rs"
[dependencies.fpdec]
version = "0.14.0"
[dependencies.fpdec-core]
version = "0.13.0"
[dependencies.quantities]
version = "0.15.0"
features = ["fpdec"]
[dependencies.serde]
version = "1"
features = ["derive"]
optional = true
[dependencies.synctools]
version = "0.3"
[dev-dependencies.serde]
version = "1"
[dev-dependencies.serde_json]
version = "1.0"