architecturekit 0.22.0

Building blocks for DDD-based applications with CQRS and event sourcing, on top of the EventSourcingDB by the native web.
Documentation
//! Serving commands and queries over HTTP. The module needs the feature
//! `http`, and its parts for axum the feature `axum`, which turns on `http` as
//! well.
//!
//! The kit offers building blocks rather than routes: every route is an
//! ordinary handler of the web framework, which determines its user with an
//! extractor of its own, and answers with what the kit answers. A failure is
//! an [`HttpError`], which every error of the kit turns into, and which
//! answers it with a status and a message by its category.

mod answer;
mod body;
mod decoding;
mod error;
#[cfg(feature = "axum")]
mod extract;
mod health;
#[cfg(test)]
mod logs;
mod reading;
#[cfg(all(test, feature = "axum", feature = "testcontainers"))]
mod tests;

pub use answer::CommandAnswer;
pub use body::{MAX_REQUEST_BODY, body_of, no_body};
pub use error::HttpError;
#[cfg(feature = "axum")]
pub use extract::{NoBody, Strict, answer_panic, query};
pub use health::Health;
pub use reading::{DEFAULT_WAIT, QueryAnswer, REVISION, Reading, WAIT_FOR_REVISION};