//! 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, /// Link preview fetcher. `LinkPreviewFetcher::Http` in production with an /// SSRF-safe redirect policy; `LinkPreviewFetcher::Noop` in tests. pub link_preview: link_preview::LinkPreviewFetcher, pub s3: Option>, }