Explore statum-examples content types
mainThe statum-examples crate is organized into two main categories to help you learn Statum at different levels of complexity:
Toy Demos (src/toy_demos/)
Small, syntax-first examples (e.g., example_01_setup.rs through 16-machine-introspection.rs). These are best for learning specific macros or individual helper functions in isolation. They include introspection examples showing branch alternatives and runtime transition recording.
Showcases (src/showcases/)
Realistic, integrated examples of Statum in production-like environments:
axum-sqlite-review: Document approval using HTTP, SQLite, and typed rehydration.serde_json_snapshot: JSON snapshot persistence involving Serde deserialization, typed rebuilding, legal checkouts, and serialization.clap-sqlite-deploy-pipeline: A multi-invocation CLI workflow.sqlite-event-log-rebuild: An append-only projection and rebuild companion.tokio-sqlite-job-runner: Managing retries, leases, and background work.tokio-websocket-session: Managing protocol-safe session lifecycles.