doubleentry 0.6.0

An immutable, tamper-evident double-entry bookkeeping engine. Balanced-by-construction entries, exact integer money, deterministic identity, and an append-only Merkle log with inclusion and consistency proofs. Zero I/O. No async. No chart of accounts.
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
rust-version = "1.94"
name = "doubleentry"
version = "0.6.0"
authors = ["hupe1980"]
build = false
include = [
    "src/**/*.rs",
    "schema/*.sql",
    "tests/*.rs",
    "README.md",
    "CHANGELOG.md",
    "LICENSE-APACHE",
    "LICENSE-MIT",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "An immutable, tamper-evident double-entry bookkeeping engine. Balanced-by-construction entries, exact integer money, deterministic identity, and an append-only Merkle log with inclusion and consistency proofs. Zero I/O. No async. No chart of accounts."
homepage = "https://hupe1980.github.io/doubleentry"
documentation = "https://docs.rs/doubleentry"
readme = "README.md"
keywords = [
    "accounting",
    "ledger",
    "double-entry",
    "bookkeeping",
    "merkle",
]
categories = [
    "finance",
    "data-structures",
    "cryptography",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/hupe1980/doubleentry"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
default = []
iceberg = [
    "dep:iceberg",
    "dep:arrow-array",
    "dep:arrow-schema",
    "dep:parquet",
]
postgres = [
    "dep:sqlx",
    "sqlx/postgres",
]
serde = [
    "dep:serde",
    "time/serde",
    "uuid/serde",
]
sqlite = [
    "dep:sqlx",
    "sqlx/sqlite",
]

[lib]
name = "doubleentry"
path = "src/lib.rs"

[[test]]
name = "cold_tier"
path = "tests/cold_tier.rs"

[[test]]
name = "golden"
path = "tests/golden.rs"

[[test]]
name = "postgres"
path = "tests/postgres.rs"

[[test]]
name = "properties"
path = "tests/properties.rs"

[[test]]
name = "scale"
path = "tests/scale.rs"

[[test]]
name = "simulation"
path = "tests/simulation.rs"

[[test]]
name = "sqlite"
path = "tests/sqlite.rs"

[dependencies.arrow-array]
version = "58"
optional = true

[dependencies.arrow-schema]
version = "58"
optional = true

[dependencies.blake3]
version = "1"

[dependencies.iceberg]
version = "0.10"
optional = true

[dependencies.parquet]
version = "58"
optional = true

[dependencies.serde]
version = "1"
features = ["derive"]
optional = true

[dependencies.smallvec]
version = "1"

[dependencies.sqlx]
version = "0.8"
features = [
    "runtime-tokio-rustls",
    "time",
    "uuid",
]
optional = true
default-features = false

[dependencies.thiserror]
version = "2"

[dependencies.time]
version = "0.3"
features = [
    "std",
    "macros",
]

[dependencies.uuid]
version = "1"
features = ["v7"]

[dev-dependencies.proptest]
version = "1"

[dev-dependencies.serde_json]
version = "1"

[dev-dependencies.tempfile]
version = "3"

[dev-dependencies.testcontainers]
version = "0.27"

[dev-dependencies.testcontainers-modules]
version = "0.15"
features = ["postgres"]

[dev-dependencies.tokio]
version = "1"
features = [
    "macros",
    "rt-multi-thread",
    "sync",
]

[lints.clippy]
arithmetic_side_effects = "deny"
expect_used = "deny"
indexing_slicing = "deny"
panic = "deny"
unwrap_used = "deny"

[lints.rust]
missing_docs = "warn"
unsafe_code = "forbid"