This commit is contained in:
2026-04-17 19:18:34 +02:00
parent d6a33a7fcb
commit 09838c4dd7
10 changed files with 454 additions and 28 deletions

View File

@@ -2,22 +2,34 @@
//! Core public library for the `khadhroony-bobot` workspace.
//!
//! This crate exposes the reusable building blocks shared by the khbb
//! applications, starting with the listener runtime bootstrap.
//! This crate exposes the reusable components shared by the khbb binaries,
//! starting with configuration loading, tracing initialization, SQLite storage
//! bootstrap and the initial listener runtime skeleton.
#![deny(unreachable_pub)]
#![warn(missing_docs)]
mod app;
mod config;
mod domain;
mod error;
mod listener;
mod storage;
mod tracing_setup;
/// Public re-exports for the khbb core library.
/// Runs the listener application bootstrap workflow.
pub use crate::app::run_listener_app;
/// Public re-exports for configuration loading.
/// Root configuration of the khbb applications.
pub use crate::config::KhbbAppConfig;
/// Public re-exports for configuration loading errors and runtime errors.
/// Database session information for a listener runtime instance.
pub use crate::domain::KhbbListenerSession;
/// Main explicit error type used by the library.
pub use crate::error::KhbbError;
/// Public re-exports for tracing initialization.
/// Runs the current listener runtime skeleton.
pub use crate::listener::run_listener_runtime;
/// Creates and initializes the SQLite storage layer.
pub use crate::storage::create_sqlite_pool;
/// Ensures the SQLite schema is present.
pub use crate::storage::ensure_sqlite_schema;
/// Initializes the tracing subscriber for the process.
pub use crate::tracing_setup::init_tracing;