wist-shared
Shared runtime helpers: filesystem, IDs, paths, time, and primitives.
wist-shared is the small, dependency-light toolbox used across the wist-* crates. It has no
internal dependencies, so it can be used from any component.
Modules
| Module | Purpose |
|---|---|
fs |
Filesystem helpers (atomic JSON / byte writes). |
ids |
Shared ID helpers. |
paths |
Well-known file and directory names (workdir files, config, …). |
time |
RFC 3339 timestamps and time helpers. |
primitives |
Cross-domain scalar wrappers (DateTime, Secret, Int, Bool, Float). |
records |
Record delimitation: folds a line stream into records (multi-line log folding). |
integrity |
Development-only local integrity helpers. |
error_codes |
Shared error-code placeholders. |
Example
use write_json_atomic;
use now_rfc3339;
write_json_atomic?;
let now = now_rfc3339;
Related crates
wist-contracts— schema objects this crate helps read and write.wist-agentd— the primary consumer.