1pub mod config;
7pub mod core;
8pub mod handlers;
9pub mod middleware;
10pub mod monitoring;
11pub mod server;
12pub mod ssl;
13
14pub use config::{ServerConfig, SiteConfig};
16pub use core::{BwsError, BwsResult};
17pub use monitoring::{CertificateWatcher, HealthHandler};
18pub use server::WebServerService;
19pub use ssl::{AcmeConfig, SslManager};
20
21#[cfg(test)]
22mod tests {
23 use super::*;
24
25 #[test]
26 fn test_bws_error_display() {
27 let err = BwsError::Config("test error".to_string());
28 let s = format!("{}", err);
29 assert!(s.contains("test error"));
30 }
31}