Expand description
Proc-macro implementation crate for Statum.
Most users should depend on statum, which
re-exports these macros with the public-facing documentation. This crate
exists so the macro expansion logic can stay separate from the stable runtime
traits in statum-core.
The public macros are:
- [
state] for declaring legal lifecycle phases - [
machine] for declaring the typed machine and durable context - [
transition] for validating legal transition impls - [
validators] for rebuilding typed machines from persisted data
Attribute Macrosยง
- machine
- Define a typed machine that carries durable context across states.
- state
- Define the legal lifecycle phases for a Statum machine.
- transition
- Validate and generate legal transitions for one source state.
- validators
- Rebuild typed machines from persisted data.