Expand description
A developer-friendly, featherlight and functional HTTP(S) mock server built in Rust, based on hyper and tokio.
§Workspace layout (5.0.0+)
Starting with 5.0.0, apimock is split across four crates. This crate
(apimock) is a thin façade that re-exports the three member crates
and provides the CLI entry point:
apimock_config— the TOML config model; loading, validation, and (coming in stage 2) the GUI-facing edit API.apimock_routing— rule-set definitions, matching, and the read-only view types a GUI binds against.apimock_server— HTTP listener, request dispatch, middleware compilation.
Most existing code that did use apimock::core::… can migrate by
replacing the prefix with the appropriate re-export below. For
example, apimock::core::server::routing::rule_set::RuleSet is now
apimock::routing::RuleSet (or, equivalently,
apimock_routing::RuleSet).
Re-exports§
pub use app::App;pub use args::EnvArgs;pub use apimock_config as config;pub use apimock_routing as routing;pub use apimock_server as server;
Modules§
Functions§
- new
- Build the app (default feature).