Skip to main content

Crate cochranblock

Crate cochranblock 

Source
Expand description

CochranBlock — Rust-only SaaS. Kova: thiserror, no unwrap in lib, /// doc = Why. Flattened: core/* → src/ (folder_token_map).

Modules§

db
Persistence: pure-Rust embedded redb. Single-file ACID, zero-copy reads, no transitive RSA / no aws-lc / no fxhash / no instant — replaces the previous (test-only) sled wrapper AND the runtime sqlx + sqlite intake pool with a single store. Values bincoded (no zstd; redb is already compact-by-design and bincode-2 is small).
error
t18 = AppError. Kova: thiserror for all custom errors. No unwrap/expect in lib.
logs
Daily-rolling log appender. Logs land at: ~/.local/share/{project}/logs/current.YYYY-MM-DD.log
std_aliases
Std method aliases (f300+). f374 = iter.
ux
UX module placeholder (folder_token_map).
web

Structs§

t0
t0 = AppState. Why: Shared state for router; redb store for intake + (when admin is on) admins/sessions/settings/dns_log.
t1
t1 = SiteStats. Cached dynamic numbers. Single source of truth.