Skip to main content

Crate cruster

Crate cruster 

Source
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.