Skip to main content

Crate wipe_core

Crate wipe_core 

Source
Expand description

Core storage engine and domain model for wipe.

wipe-core owns everything that touches a .wipe board on disk: the domain model (model), deterministic JSON persistence and project discovery (store), stable ID formatting (id), and the error type (error).

Every mutation of a .wipe directory in the entire project MUST go through this crate so that serialization stays deterministic (stable key order, trailing newline, atomic writes) and git diffs remain minimal and merge-friendly.

Re-exports§

pub use config::GlobalConfig;
pub use error::Error;
pub use error::Result;
pub use store::Store;
pub use store::WIPE_DIR;

Modules§

config
User-global configuration (<config>/wipe/config.json).
error
Error type shared across wipe-core.
forum
The project forum: a git-tracked, thread-structured discussion hub that lives beside the board under .wipe/forum/.
git
Lightweight git integration by shelling out to the git CLI.
id
Stable, human-friendly ID formatting.
model
The wipe domain model.
ops
High-level, transactional board operations shared by every front-end (CLI, daemon, desktop). Each function loads what it needs through Store, mutates the in-memory model, and writes it back deterministically. Keeping these here means the mutation rules live in exactly one place.
store
Deterministic, atomic persistence of a .wipe board and project discovery.