Skip to main content

Crate runtime_rs

Crate runtime_rs 

Source
Expand description

§runtime-rs

Agnostic service composition primitives for multi-service Rust applications.

No application state, no configuration, no HTTP, no TLS, no DB dependency. Pull this crate into any Rust project with multiple services; bring your own state type, implement state::SharedState and optionally registry::ReloadState on it, then use registry::Registry with the registry::Provider / registry::Reloadable / registry::Runnable traits.

The error model (registry::Error, registry::BoxError, registry::Result) lives inside the registry module because it is a registry concern — helper primitives such as [gate] have their own semantics and do not share this error type.

Re-exports§

pub use registry::BoxError;
pub use registry::Error;
pub use registry::Provider;
pub use registry::ProviderOrder;
pub use registry::Registry;
pub use registry::ReloadState;
pub use registry::Reloadable;
pub use registry::Result;
pub use registry::Runnable;
pub use state::SharedState;

Modules§

registry
state

Structs§

Runtime
Runtime task manager for runnable providers.