[package]
edition = "2024"
rust-version = "1.94"
name = "doubleentry"
version = "0.8.0"
authors = ["hupe1980"]
build = false
include = [
"src/**",
"tests/**",
"examples/**",
"benches/**",
"/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: one pure rule core, exact integer money, identity derived from the idempotency key, and one append-only RFC 6962 Merkle log with inclusion, consistency and sealed-balance proofs and C2SP checkpoints, in memory (sync) or over SQLite and PostgreSQL (async)."
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 = []
postgres = [
"dep:sqlx",
"sqlx/postgres",
]
serde = [
"dep:serde",
"time/serde",
]
sqlite = [
"dep:sqlx",
"sqlx/sqlite-bundled",
"sqlx/sqlite-unlock-notify",
]
testing = ["dep:tokio"]
tracing = ["dep:tracing"]
witness = ["dep:ed25519-dalek"]
[lib]
name = "doubleentry"
path = "src/lib.rs"
[[example]]
name = "holds"
path = "examples/holds.rs"
[[example]]
name = "invoice_clearing"
path = "examples/invoice_clearing.rs"
[[example]]
name = "month_close"
path = "examples/month_close.rs"
[[example]]
name = "multi_currency"
path = "examples/multi_currency.rs"
[[example]]
name = "reporting"
path = "examples/reporting.rs"
[[example]]
name = "restore_audit"
path = "examples/restore_audit.rs"
required-features = ["sqlite"]
[[example]]
name = "reversal"
path = "examples/reversal.rs"
[[example]]
name = "sqlite_service"
path = "examples/sqlite_service.rs"
required-features = ["sqlite"]
[[example]]
name = "transparency"
path = "examples/transparency.rs"
required-features = [
"witness",
"testing",
]
[[example]]
name = "wallet"
path = "examples/wallet.rs"
[[example]]
name = "witness"
path = "examples/witness.rs"
required-features = [
"witness",
"testing",
]
[[test]]
name = "api_surface"
path = "tests/api_surface.rs"
[[test]]
name = "core_audit"
path = "tests/core_audit.rs"
[[test]]
name = "core_calendar"
path = "tests/core_calendar.rs"
[[test]]
name = "core_clearing"
path = "tests/core_clearing.rs"
[[test]]
name = "core_closing"
path = "tests/core_closing.rs"
[[test]]
name = "core_master"
path = "tests/core_master.rs"
[[test]]
name = "core_rejections"
path = "tests/core_rejections.rs"
[[test]]
name = "display"
path = "tests/display.rs"
[[test]]
name = "errors"
path = "tests/errors.rs"
[[test]]
name = "examples_loc"
path = "tests/examples_loc.rs"
[[test]]
name = "export"
path = "tests/export.rs"
[[test]]
name = "facade_parity"
path = "tests/facade_parity.rs"
[[test]]
name = "golden"
path = "tests/golden.rs"
[[test]]
name = "holds"
path = "tests/holds.rs"
[[test]]
name = "journal_example"
path = "tests/journal_example.rs"
[[test]]
name = "log"
path = "tests/log.rs"
[[test]]
name = "macros"
path = "tests/macros.rs"
[[test]]
name = "memory"
path = "tests/memory.rs"
[[test]]
name = "model"
path = "tests/model.rs"
[[test]]
name = "postgres"
path = "tests/postgres.rs"
[[test]]
name = "properties"
path = "tests/properties.rs"
[[test]]
name = "record_properties"
path = "tests/record_properties.rs"
[[test]]
name = "regressions_engine"
path = "tests/regressions_engine.rs"
[[test]]
name = "regressions_poc"
path = "tests/regressions_poc.rs"
[[test]]
name = "regressions_round3"
path = "tests/regressions_round3.rs"
[[test]]
name = "reports"
path = "tests/reports.rs"
[[test]]
name = "serde_fuzz_guard"
path = "tests/serde_fuzz_guard.rs"
[[test]]
name = "sqlite"
path = "tests/sqlite.rs"
[[test]]
name = "tracing"
path = "tests/tracing.rs"
[[test]]
name = "transparency"
path = "tests/transparency.rs"
[[test]]
name = "transparency_interop"
path = "tests/transparency_interop.rs"
[[test]]
name = "write_reads"
path = "tests/write_reads.rs"
[[bench]]
name = "core"
path = "benches/core.rs"
harness = false
[[bench]]
name = "journal_memory"
path = "benches/journal_memory.rs"
harness = false
[[bench]]
name = "proofs"
path = "benches/proofs.rs"
harness = false
required-features = ["sqlite"]
[[bench]]
name = "report"
path = "benches/report.rs"
harness = false
[[bench]]
name = "throughput"
path = "benches/throughput.rs"
harness = false
required-features = ["sqlite"]
[dependencies.document-features]
version = "0.2.12"
[dependencies.ed25519-dalek]
version = "3.0.0"
features = [
"alloc",
"zeroize",
]
optional = true
default-features = false
[dependencies.getrandom]
version = "0.3.4"
features = ["std"]
[dependencies.serde]
version = "1.0.220"
features = ["derive"]
optional = true
[dependencies.sha2]
version = "0.11.1"
default-features = false
[dependencies.sqlx]
version = "0.9.0"
features = [
"runtime-tokio",
"time",
]
optional = true
default-features = false
[dependencies.thiserror]
version = "2.0.18"
[dependencies.time]
version = "0.3.47"
features = [
"std",
"macros",
]
[dependencies.tokio]
version = "1.51.0"
features = [
"rt-multi-thread",
"sync",
"macros",
"time",
]
optional = true
default-features = false
[dependencies.tracing]
version = "0.1.37"
features = [
"std",
"attributes",
]
optional = true
default-features = false
[dependencies.unicode-normalization]
version = "0.1.25"
default-features = false
[dev-dependencies.criterion]
version = "0.8.2"
features = [
"cargo_bench_support",
"async_tokio",
]
default-features = false
[dev-dependencies.proptest]
version = "1"
[dev-dependencies.serde_json]
version = "1.0.151"
[dev-dependencies.stats_alloc]
version = "0.1.10"
[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.51.0"
features = [
"macros",
"rt-multi-thread",
"sync",
"time",
]
[dev-dependencies.tracing-core]
version = "0.1.36"
[dev-dependencies.trybuild]
version = "1.0.110"
[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"
[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ["cfg(fuzzing)"]
[profile.dev.package.curve25519-dalek]
opt-level = 3
[profile.dev.package.ed25519-dalek]
opt-level = 3
[profile.dev.package.sha2]
opt-level = 3