areq_body/
lib.rs

1#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
2#![cfg_attr(feature = "rtn", feature(return_type_notation))]
3#![cfg_attr(not(feature = "rtn"), allow(async_fn_in_trait))]
4
5mod body;
6#[cfg(feature = "rtn")]
7#[cfg_attr(docsrs, doc(cfg(feature = "rtn")))]
8mod body_rtn;
9
10/// The crate's prelude.
11pub mod prelude {
12    pub use crate::{Body, BodyExt as _, Hint, IntoBody};
13
14    #[cfg(feature = "rtn")]
15    #[cfg_attr(docsrs, doc(cfg(feature = "rtn")))]
16    pub use crate::SendBodyExt as _;
17}
18
19pub use crate::body::{
20    Body, BodyExt, Boxed, BoxedLocal, Chunked, Deferred, Full, Hint, IntoBody, PollBody, Void,
21};
22
23#[cfg(feature = "rtn")]
24#[cfg_attr(docsrs, doc(cfg(feature = "rtn")))]
25pub use crate::body::{SendBody, SendBodyExt};