Attempt at recreating https://github.com/cpp-taskflow/cpp-taskflow in Rust.
```rust
struct FlowTask;
let mut flow = Flow::new();
let a = flow.newtask(FlowTask::new(|x: &i32| *x + 1)); let b = flow.newtask(FlowTask::new(|x: &i32| *x - 2)); let c = flow.new_task(FlowTask::new(|x: &i32| *x + 3));
flow.connectoutput0toinput0(&a, &b); flow.connectoutput0toinput0(&b, &c);
let flowexec = flow.execute().await; let result = flowexec.getoutput0(&c); ```
For a more complete example, see fullexampletest.rs.
bash
git clone https://github.com/mm318/rs_taskflow.git
For development iterations ```bash
cargo test --no-default-features -- --nocapture ```
For testing build with more debug messages
bash
cargo test -- --nocapture
For testing release build
bash
cargo test --release -- --nocapture
Developed using Ubuntu 20.04 and Rust 1.64.
Tested nightly using ubuntu-latest
and latest stable Rust (as fetched by actions-rs/toolchain@v1
).