[package]
edition = "2024"
rust-version = "1.85"
name = "kuatia-storage-sql"
version = "0.2.0"
authors = ["Cesar Rodas <c@rm.com.py>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "SQLite/PostgreSQL storage backend for the Kuatia ledger."
readme = "README.md"
keywords = [
"ledger",
"accounting",
"double-entry",
"utxo",
"finance",
]
categories = [
"finance",
"database-implementations",
]
license = "Apache-2.0"
repository = "https://github.com/crodas/kuatia"
resolver = "2"
[features]
default = ["sqlite"]
i128 = [
"kuatia-types/i128",
"kuatia-storage/i128",
]
postgres = ["sqlx/postgres"]
sqlite = ["sqlx/sqlite"]
[lib]
name = "kuatia_storage_sql"
path = "src/lib.rs"
[[test]]
name = "sqlite"
path = "tests/sqlite.rs"
[dependencies.async-trait]
version = "0.1"
[dependencies.kuatia-storage]
version = "0.2.0"
[dependencies.kuatia-types]
version = "0.2.0"
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
[dependencies.sqlx]
version = "0.8"
features = [
"runtime-tokio",
"any",
"macros",
]
default-features = false
[dev-dependencies.kuatia-storage]
version = "0.2.0"
[dev-dependencies.kuatia-types]
version = "0.2.0"
[dev-dependencies.paste]
version = "1"
[dev-dependencies.serde_json]
version = "1"
[dev-dependencies.sqlx]
version = "0.8"
features = [
"runtime-tokio",
"any",
"macros",
]
default-features = false
[dev-dependencies.tokio]
version = "1"
features = ["full"]
[lints.rust]
arithmetic_overflow = "deny"
missing_docs = "deny"