wist-shared 0.1.2

Shared runtime helpers for the wist ecosystem: filesystem, ids, paths, time, and primitives
Documentation

wist-shared

Shared runtime helpers: filesystem, IDs, paths, time, and primitives.

crates.io docs.rs Downloads MSRV CI codecov dependency status License: Apache-2.0

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).
integrity Development-only local integrity helpers.
error_codes Shared error-code placeholders.

Example

use wist_shared::fs::write_json_atomic;
use wist_shared::time::now_rfc3339;

write_json_atomic(path, &value)?;
let now = now_rfc3339();

Related crates

License

Apache-2.0