Expand description
Cruster — stateless entity framework with durable workflows.
Entities are addressable stateless RPC handlers. Workflows provide durable orchestration. State management is the application’s responsibility (use your database directly).
Modules§
- config
- cron
- Cluster cron job scheduling.
- detachment
- Detachment state management for shard ownership.
- entity
- entity_
client - entity_
manager - entity_
reaper - entity_
resource - envelope
- error
- hash
- message
- message_
storage - metrics
- prelude
- Prelude module for convenient glob imports.
- reply
- resource_
map - runner
- runner_
health - runner_
storage - runners
- schema
- Cluster annotations for RPC definitions.
- shard_
assigner - Shard Assignment Strategies
- sharding
- sharding_
impl - single_
runner - Production-grade single-node cluster with durable message storage.
- singleton
- Singleton registration helper.
- snowflake
- state_
guard - Activity scope for transactional activity execution.
- storage
- transport
- types
Attribute Macros§
- activity_
group - Re-export proc macros for activity group definition.
#[activity_group]marks a struct as an activity group.#[activity_group_impl]processes the impl block. Attribute macro for activity group struct definitions. - activity_
group_ impl - Re-export proc macros for activity group definition.
#[activity_group]marks a struct as an activity group.#[activity_group_impl]processes the impl block. Attribute macro for activity group impl blocks. - entity
- Re-export proc macros for entity definition. Attribute macro for entity struct definitions.
- entity_
impl - Re-export proc macros for entity definition. Attribute macro for entity impl blocks.
- entity_
trait - Re-export deprecated entity_trait macros (emit compile errors directing to replacements).
Removed. Entity traits have been replaced by
#[rpc_group]/#[rpc_group_impl]. - entity_
trait_ impl - Re-export deprecated entity_trait macros (emit compile errors directing to replacements).
Removed. Entity trait impls have been replaced by
#[rpc_group_impl]. - rpc_
group - Re-export proc macros for RPC group definition.
#[rpc_group]marks a struct as an RPC group.#[rpc_group_impl]processes the impl block. Attribute macro for RPC group struct definitions. - rpc_
group_ impl - Re-export proc macros for RPC group definition.
#[rpc_group]marks a struct as an RPC group.#[rpc_group_impl]processes the impl block. Attribute macro for RPC group impl blocks. - workflow_
impl - Re-export proc macros for standalone workflow definition.
#[workflow]is dual-purpose (struct-level -> standalone workflow, method-level -> marker).#[workflow_impl]is used on the workflow impl block. Attribute macro for standalone workflow impl blocks.