rskit_hook/lib.rs
1//! Typed in-process hooks and event bus primitives.
2//!
3//! Domain-specific event payloads implement [`Event`] and are registered with
4//! [`HookRegistry::on`] using the concrete event type. This keeps hook payloads
5//! typed at the public API boundary while allowing a single injected registry
6//! to coordinate multiple event types.
7
8#![warn(missing_docs)]
9
10/// Bounded typed in-process event bus.
11pub mod bus;
12/// Typed hook registry.
13pub mod registry;
14/// Event and hook result types.
15pub mod types;
16
17pub use bus::{EventBus, EventBusConfig, EventRegistry, Subscriber};
18pub use registry::HookRegistry as Registry;
19pub use registry::{HookRegistry, LifecycleHookRegistry};
20pub use tokio_util::sync::CancellationToken;
21pub use types::{Event, EventType, HookError, HookResult};