The first run of cargo-deny on the lock file (2026-11-09) listed 23 RustSec advisories, one unsound crate and two yanked ones. This closes all but two by upgrading; the two are a second copy of quick-xml that typst brings and that reads nothing from outside (the gate's file, next commit, says so with its reason and date). A wrong answer found on the way. quick-xml 0.42 reports a character or entity reference (`&`, `&`) as an event of its own, where 0.38 handed it over inside the text. The reader's first build on 0.42 took only the text events, so a cell holding `AT&T` read as `ATT`: a payee's name, changed without a word, on its way into an import. The reader now turns each reference into its character (the five XML names, decimal and hexadecimal numbers) in shared strings and in inline cell text, and refuses a file whose reference names no character rather than dropping it. Two new tests: a reference in a cell is its character; a reference to no character is refused. What moved, and the advisory each closes: - quick-xml 0.38 -> 0.42 in ledger-reader, the copy that parses files from outside (RUSTSEC-2026-0194, -0195: a slow or memory-hungry parse of hostile XML). - rusqlite 0.32 -> 0.41, with `fallible_uint` so a u64 past i64::MAX is an error and never a wrapped number (libsqlite3-sys, RUSTSEC-2026-0459). One test's use of `column_names` follows the new signature. - rust_xlsxwriter 0.90 -> 0.102, which drops the old zip 4 (RUSTSEC-2026-0367, -0368, -0369, -0429). - In the lock file only: rustls (-0346 to -0349), rustls-webpki (-0382), webpki-root-certs (-0383), ctutils (-0385), tokio (-0386), zstd, zstd-safe and zstd-sys (-0391, -0398, -0403, -0410), pulldown-cmark (-0433), rmcp 3.5 -> 3.9 (-0457, -0461, -0462), and the yanked async-executor and clipboard-win. - fuzz/Cargo.lock in step, so the fuzz targets build what ships. No new dependency of ours: rsqlite-vfs and sqlite-wasm-rs enter the lock file as rusqlite's own, for a target (wasm) we do not build. Shown: `cargo check --workspace --all-targets` clean; `cargo test` of ledger-reader (4 passed), ledger-import (145 passed, 2 ignored) and ledger-store (579 passed, 2 ignored, exit 0). The store run kept its scratch files in memory (TMPDIR on tmpfs): on the loaded disk a synced write took 30 ms and the refusal law alone ran past half an hour. Co-Authored-By: Claude <noreply@anthropic.com>
65 lines
2.3 KiB
TOML
65 lines
2.3 KiB
TOML
[package]
|
|
name = "ledger-cli"
|
|
version = "0.1.0"
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
repository.workspace = true
|
|
description = "wanderbooks: the one executable (viewer, books server, host, agents' bridge, owner's commands)."
|
|
|
|
[[bin]]
|
|
name = "wanderbooks"
|
|
path = "src/main.rs"
|
|
|
|
[features]
|
|
default = ["gui"]
|
|
# The viewer. Off in the server-only build for another machine (plan
|
|
# D-22, P9), so a headless machine carries no window libraries.
|
|
gui = ["dep:ledger-gui"]
|
|
|
|
[dependencies]
|
|
ledger-host = { path = "../ledger-host" }
|
|
ledger-mcp = { path = "../ledger-mcp" }
|
|
ledger-store = { path = "../ledger-store" }
|
|
ledger-gui = { path = "../ledger-gui", optional = true }
|
|
|
|
[dev-dependencies]
|
|
base64 = "0.22"
|
|
chrono = "0.4"
|
|
# Every test that drives the books server's tools: the CPA package they
|
|
# open, the outputSchemas they check against, the random cases, and the
|
|
# database read_only_tools_change_nothing compares by its rows.
|
|
jsonschema = { version = "0.58", default-features = false }
|
|
libc = "0.2"
|
|
proptest = "1"
|
|
reqwest = "0.13"
|
|
rusqlite = { version = "0.41", features = ["bundled", "fallible_uint"] }
|
|
rust_decimal = "1"
|
|
rmcp = { version = "3", features = ["client", "transport-streamable-http-client-reqwest"] }
|
|
tokio = { version = "1", features = ["macros", "rt-multi-thread", "time"] }
|
|
ledger-config = { path = "../ledger-config" }
|
|
ledger-core = { path = "../ledger-core" }
|
|
ledger-package = { path = "../ledger-package" }
|
|
ledger-import = { path = "../ledger-import" }
|
|
ledger-vault = { path = "../ledger-vault" }
|
|
serde_json = "1"
|
|
sha2 = "0.10"
|
|
tempfile = "3"
|
|
zip = "9.0.1"
|
|
minisign = "0.10.0"
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
# The .rpm (P11a step 3), built by cargo-generate-rpm from the release
|
|
# program: `just package-linux`. Paths are relative to the workspace root.
|
|
[package.metadata.generate-rpm]
|
|
name = "wanderbooks"
|
|
summary = "Double-entry bookkeeping your agent keeps and you can read"
|
|
license = "MIT OR Apache-2.0"
|
|
url = "https://wanderbooks.ai"
|
|
assets = [
|
|
{ source = "target/release/wanderbooks", dest = "/usr/bin/wanderbooks", mode = "0755" },
|
|
{ source = "deploy/packaging/install-method-rpm", dest = "/usr/share/wanderbooks/install-method", mode = "0644" },
|
|
{ source = "deploy/packaging/wanderbooks-static.desktop", dest = "/usr/share/applications/wanderbooks.desktop", mode = "0644" },
|
|
]
|