// file: khbb_lib/src/lib.rs //! Core public library for the `khadhroony-bobot` workspace. //! //! 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; /// Runs the listener application bootstrap workflow. pub use crate::app::run_listener_app; /// Root configuration of the khbb applications. pub use crate::config::KhbbAppConfig; /// 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; /// 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;