effectful 0.2.0

Effect<A, E, R> (sync + async), context/layers, pipe — interpreter-style, no bundled executor
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! Declarative macros (`pipe!`, `ctx!`, …).
//!
//! They are implemented in the **`effectful_macro`** crate and re-exported at the `effectful` crate
//! root. Procedural **`effect!`** is implemented in **`effectful_proc_macro`** (Rust cannot combine
//! `macro_rules!` and `#[proc_macro]` in one crate).
//!
//! Submodule **`effect`** keeps the stable path `macros::effect::effect` for the procedural macro.

/// Re-exports the procedural `effect!` macro (`effectful_proc_macro::effect`) at `macros::effect::effect`.
pub mod effect {
  pub use effectful_proc_macro::effect;
}

#[allow(deprecated)]
pub use effectful_macro::{ctx, err, layer_graph, layer_node, pipe, req, service_def, service_key};