rskit-bootstrap — Service Lifecycle
Typestate App<S,C> builder, Component trait, ordered Registry, and Health reporting.
Features
- Compile-time lifecycle ordering via typestate pattern
- Reverse-order graceful shutdown
- Cancellation via
tokio_util::sync::CancellationToken HealthStatuswith three states:Healthy,Degraded,UnhealthyComponenttrait for pluggable lifecycle-managed services
Usage
[]
= "0.1.0-alpha.1"
use ;
new
.build?
.before_start
.run
.await?;