//! # lmrc-http-common
//!
//! Common HTTP utilities and patterns for LMRC Stack applications.
//!
//! This library provides reusable components for building Axum-based HTTP services:
//! - Standard error types and response wrappers
//! - Reusable middleware (CORS, logging, tracing)
//! - Authentication utilities (JWT, session management, password hashing)
//! - Configuration patterns
//!
//! ## Features
//!
//! - `auth` (default): Enable authentication utilities (JWT, bcrypt, sessions)
//! - `validation` (default): Enable request validation helpers
//!
//! ## Example
//!
//! ```rust
//! use lmrc_http_common::{
//!     error::{HttpError, HttpResult},
//!     response::SuccessResponse,
//! };
//! use axum::{Json, response::IntoResponse};
//!
//! async fn handler() -> HttpResult<impl IntoResponse> {
//!     let data = vec!["item1", "item2"];
//!     Ok(SuccessResponse::new(data))
//! }
//! ```

pub mod error;
pub mod response;
pub mod middleware;

#[cfg(feature = "auth")]
pub mod auth;

// Re-export commonly used types
pub use error::{ErrorResponse, HttpError, HttpResult};
pub use response::{
    CreatedResponse, EmptyResponse, PaginatedResponse, PaginationMeta, SuccessResponse,
};
