result_transformer/lib.rs
1//! Reexports the core transformer traits along with optional helper crates.
2//!
3//! Enable the desired features in your `Cargo.toml` to bring the various
4//! synchronous or asynchronous APIs into scope. Consumers typically depend on
5//! this crate and activate the features they need:
6//!
7//! ```toml
8//! [dependencies]
9//! result-transformer = { version = "0.0.2", features = ["core-sync", "core-sync-macros"] }
10//! ```
11
12#[doc(hidden)]
13pub mod __internal;
14
15#[cfg(feature = "result-transformer-core")]
16pub use result_transformer_core as core;
17
18#[cfg(feature = "core-sync")]
19pub use core::sync::{self, ErrTransformer, OkTransformer, ResultTransformer};
20
21#[cfg(feature = "core-async")]
22pub use core::async_::{self, AsyncErrTransformer, AsyncOkTransformer, AsyncResultTransformer};
23
24#[cfg(feature = "result-transformer-flow")]
25pub use result_transformer_flow as flow;