rws_tower/lib.rs
1//! Tower interop for rust-web-server: adapters between rws apps and Tower services and layers.
2//!
3//! Internal to rust-web-server, released with it at the same version: use
4//! these through the `rust_web_server` paths, which stay stable; this
5//! crate's own layout may change in any release. See
6//! `spec/WORKSPACE_SPLIT.md`.
7#![cfg_attr(docsrs, feature(doc_cfg))]
8
9// Derive output (rws-macros) names `::rust_web_server::…`; in this crate's
10// tests that is this crate.
11#[cfg(test)]
12extern crate self as rust_web_server;
13
14// The layers below, under the paths the moved code uses (`crate::request`, …);
15// public (hidden) so doctests can name them as `rust_web_server::…`.
16#[allow(unused_imports)]
17#[doc(hidden)]
18pub use rws_server::{app, application, core, header, http, middleware, otel, range, request, response, server, test_client, url};
19
20pub mod tower;
21
22#[cfg(test)]
23pub(crate) mod test_env;