[package]
edition = "2021"
name = "sqlx-ledger"
version = "0.11.12"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "An embeddable double sided accounting ledger built on PG/SQLx"
documentation = "https://docs.rs/sqlx-ledger"
readme = "README.md"
categories = ["finance"]
license = "MIT"
repository = "https://github.com/GaloyMoney/sqlx-ledger"
resolver = "1"
[features]
fail-on-warnings = []
otel = [
"opentelemetry",
"tracing-opentelemetry",
]
[lib]
name = "sqlx_ledger"
path = "src/lib.rs"
[[test]]
name = "account"
path = "tests/account.rs"
[[test]]
name = "helpers"
path = "tests/helpers.rs"
[[test]]
name = "post_transactions"
path = "tests/post_transactions.rs"
[[test]]
name = "tx_template"
path = "tests/tx_template.rs"
[dependencies.cached]
version = "0.54.0"
features = ["async"]
[dependencies.cel-interpreter]
version = "0.11.12"
package = "sqlx-ledger-cel-interpreter"
[dependencies.chrono]
version = "0.4"
features = ["serde"]
[dependencies.derive_builder]
version = "0.20"
[dependencies.opentelemetry]
version = "0.27"
optional = true
[dependencies.rust_decimal]
version = "1.30"
[dependencies.rusty-money]
version = "0.4"
features = [
"iso",
"crypto",
]
[dependencies.serde]
version = "1.0"
[dependencies.serde_json]
version = "1.0"
[dependencies.sqlx]
version = "0.8.2"
features = [
"runtime-tokio-rustls",
"postgres",
"rust_decimal",
"uuid",
"chrono",
"json",
]
[dependencies.thiserror]
version = "1.0"
[dependencies.tokio]
version = "1.28"
features = ["macros"]
[dependencies.tracing]
version = "0.1"
[dependencies.tracing-opentelemetry]
version = "0.28"
optional = true
[dependencies.uuid]
version = "1.3"
features = [
"serde",
"v4",
]
[dev-dependencies.anyhow]
version = "1.0"
[dev-dependencies.rand]
version = "0.8"
[dev-dependencies.tokio-test]
version = "0.4"