Skip to main content

serenade_bundle/
lib.rs

1//! Bundle composition helpers for Serenade applications.
2//!
3//! Provides [`Extension`], [`FrameworkBundle`], and [`build_container`] so apps
4//! can wire router, config, and the event dispatcher the same way Symfony apps
5//! load `FrameworkBundle`.
6
7mod container;
8mod error;
9mod extension;
10mod framework;
11
12pub use container::build_container;
13pub use error::BundleError;
14pub use extension::Extension;
15pub use framework::{
16    CONFIG_SERVICE, FRAMEWORK_BUNDLE, FrameworkBundle, FrameworkExtension, ROUTER_SERVICE,
17};
18pub use serenade_console::{APPLICATION_SERVICE as CONSOLE_APPLICATION_SERVICE, COMMAND_TAG};
19pub use serenade_kernel::{Bundle, BundleInterface, BundleRegistry};
20
21/// Compile-time crate version for diagnostics.
22#[must_use]
23pub const fn version() -> &'static str {
24    env!("CARGO_PKG_VERSION")
25}
26
27#[cfg(test)]
28mod tests;