result_transformer_flow/lib.rs
1//! Helper flows and steps for composing transformations.
2//!
3//! This crate supplements [`result-transformer-core`](https://crates.io/crates/result-transformer-core)
4//! by providing composable "flows" that can be chained together. Each flow
5//! consumes an input value and produces an output of the same `Result` shape.
6//! Both synchronous and asynchronous variants are available behind feature
7//! flags. Enable the `"sync"` feature for blocking flows or `"async"` for
8//! versions that operate with `async`/`await`.
9//!
10//! The synchronous flows are zero-cost abstractions built purely from trait
11//! bounds. The async versions are implemented with `async fn` and remain
12//! lightweight. If you require maximum performance, implementing the
13//! `Async*Transformer` traits directly may still be preferable.
14
15mod __internal;
16
17#[cfg(feature = "sync")]
18pub mod sync;
19
20#[cfg(feature = "async")]
21pub mod async_;