bws_web_server/
lib.rs

1//! BWS (Blazing Web Server) - A high-performance multi-site web server
2//!
3//! BWS is built with the Pingora framework and provides enterprise-grade
4//! features including SSL/TLS management, load balancing, and security.
5
6pub mod config;
7pub mod core;
8pub mod handlers;
9pub mod middleware;
10pub mod monitoring;
11pub mod server;
12pub mod ssl;
13
14// Re-export main types for convenience
15pub 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}