//! Multithreaded — MNW-integrated forum software. pub mod auth; pub mod config; pub mod csrf; pub mod internal_auth; pub mod link_preview; pub mod routes; pub mod seed; pub mod storage; pub mod templates; use config::Config; use sqlx::PgPool; use std::sync::Arc; /// Shared application state available to all handlers. #[derive(Clone)] pub struct AppState { pub db: PgPool, pub config: Config, pub http: reqwest::Client, /// SSRF-safe client for link preview fetching (validates URLs on redirects). pub preview_http: reqwest::Client, pub s3: Option>, }