mockd/lib.rs
1//! Mockd — a lightweight standalone mock HTTP server.
2//!
3//! Mockd lets you stand up a realistic HTTP API from a declarative YAML
4//! configuration, without writing any code. It is designed for local
5//! development, integration tests and CI/CD pipelines.
6//!
7//! # Module overview
8//!
9//! - [`config`] — domain models and YAML configuration loading.
10//! - [`router`] — request matching against the configured routes.
11//! - [`template`] — `{{path.id}}` / `{{query.x}}` / `{{header.y}}` rendering.
12//! - [`server`] — the Axum HTTP layer.
13//!
14
15#![forbid(unsafe_code)]
16
17pub mod config;
18pub mod router;
19pub mod server;
20pub mod template;
21
22pub use config::{Config, ConfigError};
23pub use router::{Match, Router, RouterError};
24pub use server::{build_app, Server, ServerError};