Ranvier Runtime (ranvier-runtime)
The Engine: Async execution and state management for Ranvier circuits.
🎯 Purpose
ranvier-runtime provides the practical implementation for executing Axon circuits defined in ranvier-core. It handles:
- Async Traversal: Walking through the state tree asynchronously.
- Bus Management: Safely carrying the type-map state through transitions.
- Tracing Integration: Providing detailed execution logs and spans for debugging.
🔑 Key Components
Axon(Implementation): Concrete structures for building and nesting circuits.Bus(Implementation): The thread-safe container for circuit state.OutcomeHandling: Logic to resolve branches, loops, and faults during execution.
🚀 Usage
use Axon;
use *;
// Runtime is where the Axon builder and execution logic lives
let axon = start
.then;
Examples
hello-world— HTTP ingress baselineorder-processing-demo— Multi-step order processing pipeline
MSRV
- Rust
1.93.0or newer (Edition 2024).