Skip to main content

serenade_kernel/
lib.rs

1//! Application kernel and lifecycle orchestration.
2//!
3//! Owns bundle registration order, environment boot, and graceful shutdown.
4//! HTTP adapters and persistence stay in product crates.
5
6mod application;
7mod bundle;
8mod environment;
9mod error;
10mod kernel;
11mod registry;
12
13pub use application::{App, Application};
14pub use bundle::{Bundle, BundleInterface};
15pub use environment::Environment;
16pub use error::KernelError;
17pub use kernel::{Kernel, KernelPhase};
18pub use registry::BundleRegistry;
19
20/// Compile-time crate version for diagnostics and health surfaces.
21#[must_use]
22pub const fn version() -> &'static str {
23    env!("CARGO_PKG_VERSION")
24}
25
26#[cfg(test)]
27mod tests;