D-61 (Q-9): the writer sheds the typesetter and the crate map is layered again. The PDF/XLSX reader (extract.rs, plan P6) is now the plain library crate ledger-reader, moved whole with git mv and no behavior change. ledger-store depends on it instead of ledger-import, so the store no longer builds Typst or the fonts; ledger-import re-exports it as ledger_import::extract so gui, mcp, host and the fuzz targets compile unchanged, and still never depends on the store. New crate carries only the dependencies extract.rs imports (hayro, hayro-interpret, kurbo, zip, quick-xml, thiserror); fuzz/Cargo.lock gains the new package. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HS8WZziDnyxunC23MUxrLp
46 lines
1.2 KiB
TOML
46 lines
1.2 KiB
TOML
[package]
|
|
name = "ledger-store"
|
|
version = "0.1.0"
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
repository.workspace = true
|
|
description = "Durable persistence for wanderbooks: a hash-chained JSONL journal as the source of truth, content-addressed blob store, and a disposable SQLite projection."
|
|
|
|
[dependencies]
|
|
ledger-core = { path = "../ledger-core" }
|
|
# The one reader (plan P6 step 1, D-53, D-61: its own crate): the writer journals a file's
|
|
# text at attach time and on `wanderbooks books extract`, so the extractor
|
|
# must be callable here rather than only from the server. It is pure and
|
|
# deterministic (no I/O, no network, no time source).
|
|
ledger-reader = { path = "../ledger-reader" }
|
|
rusqlite = { version = "0.32", features = ["bundled"] }
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = "1"
|
|
chrono = "0.4"
|
|
rust_decimal = "1"
|
|
thiserror = "2"
|
|
sha2 = "0.10"
|
|
hex = "0.4"
|
|
getrandom = { version = "0.2", features = ["std"] }
|
|
subtle = "2"
|
|
argon2 = "0.6"
|
|
|
|
[target.'cfg(unix)'.dependencies]
|
|
libc = "0.2"
|
|
|
|
[dev-dependencies]
|
|
tempfile = "3"
|
|
proptest = "1"
|
|
rust_decimal = "1"
|
|
criterion = "0.8.2"
|
|
|
|
[target.'cfg(unix)'.dev-dependencies]
|
|
libc = "0.2"
|
|
|
|
[[bench]]
|
|
name = "store"
|
|
harness = false
|
|
|
|
[lints]
|
|
workspace = true
|