Phase 1 delivers the complete durability and storage layer:
- WAL with crash recovery: Append-only journal with BLAKE3 checksums,
fsync guarantees, and proper seek-to-EOF on reopen
- Storage engine: sled-backed KVStore with scan_prefix for range queries
- Content-addressed storage: H:{hash}, V:{hash}, E:{hash} key patterns
- Ingestor: Background worker tailing WAL, writing to KV with 8-byte
aligned record headers for rkyv zero-copy deserialization
- Comprehensive tests: 31 tests covering crash recovery, round-trips,
and multi-cycle durability
New crates: stemedb-wal, stemedb-storage, stemedb-ingest
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
26 lines
571 B
TOML
26 lines
571 B
TOML
[package]
|
|
name = "stemedb-core"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
description = "Core logic for Episteme (StemeDB)"
|
|
|
|
# Inherit workspace lints
|
|
[lints]
|
|
workspace = true
|
|
|
|
[dependencies]
|
|
serde = { version = "1.0", features = ["derive"] }
|
|
thiserror = "1.0"
|
|
tracing = "0.1"
|
|
tracing-subscriber = "0.3"
|
|
|
|
# Serialization & Hashing
|
|
rkyv = { version = "0.7", features = ["validation", "strict"] }
|
|
blake3 = "1.5"
|
|
bytecheck = "0.6" # Required for rkyv validation
|
|
|
|
# Cryptography
|
|
ed25519-dalek = { version = "2.1", features = ["rand_core"] }
|
|
|
|
# Visual Provenance
|
|
image_hasher = "3.1" |