modulink-rs 1.0.0

A modular, composable, and observable async function orchestration library for Rust, following the ModuLink universal template.
Documentation
1
2
3
4
5
6
7
8
9
10
/// Macro to compose a sequence of links into a chain (ergonomic API).
/// Usage: let my_chain = chain![link1, link2, link3];
#[macro_export]
macro_rules! chain {
    ( $($link:expr),* $(,)? ) => {{
        let mut chain = $crate::chains::Chain::new();
        $( chain.add_link($link); )*
        chain
    }};
}