wireframe 0.4.0-alpha1

Simplify building servers and clients for custom binary protocols.
Documentation
#![doc(html_root_url = "https://docs.rs/wireframe/latest")]
//! Public API for the `wireframe` library.
//!
//! This crate provides building blocks for asynchronous binary protocol
//! servers, including routing, middleware, and connection utilities.
//!
//! Public API discovery is tiered:
//! - Root exports stay intentionally small and stable.
//! - Domain modules hold detailed APIs (`app`, `server`, `client`, and so on).
//! - [`prelude`] offers optional convenience imports for common workflows.
//!
//! The root [`Result`] alias uses [`WireframeError`] with the default
//! [`NoProtocolError`] protocol marker. This keeps `Result<T>` usable as a
//! standard error type when an API has no protocol-specific error payload.
//! Use `WireframeError<E>` explicitly when a protocol supplies its own error
//! type.

#![forbid(unsafe_code)]

extern crate self as wireframe;

pub mod app;
pub mod benchmark_counters;
pub mod byte_order;
#[cfg(not(loom))]
pub mod client;
pub mod codec;
pub mod error;
pub use error::{NoProtocolError, Result, WireframeError};
pub mod connection;
pub mod correlation;
mod fairness;
pub mod fragment;
pub mod frame;
pub mod hooks;
pub mod message;
pub mod message_assembler;
pub mod metrics;
pub mod middleware;
pub mod panic;
pub mod preamble;
pub mod prelude;
pub mod push;
pub mod request;
pub mod response;
pub mod rewind_stream;
pub mod serializer;
#[cfg(not(loom))]
pub mod server;
pub mod session;
#[cfg(any(test, feature = "test-support"))]
pub mod test_helpers;
#[cfg(feature = "testkit")]
pub mod testkit;

// These modules exist only during `cargo test --doc`, keeping guide examples
// type-checked without adding them to the published crate documentation.
#[cfg(doctest)]
pub mod tested_documentation;