dfir_rs 0.14.0

DFIR runtime for Rust, used by Hydro.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use dfir_rs::dfir_syntax;

fn main() {
    let (input_send, input_recv) = dfir_rs::util::unbounded_channel::<&str>();
    let mut flow = dfir_syntax! {
        source_stream(input_recv) -> map(|x| x.to_uppercase())
            -> for_each(|x| println!("{}", x));
    };
    input_send.send("Hello").unwrap();
    input_send.send("World").unwrap();
    flow.run_available();
}