use thepipelinetool::prelude::*;
fn produce_data(_: ()) -> String {
"world".to_string()
}
fn print_data(arg: String) -> () {
println!("hello {arg}");
}
#[dag]
fn main() {
let opts = &TaskOptions::default();
// add a task that uses the function 'produce_data'
let task_ref = add_task(produce_data, (), opts);
// add a task that depends on 'task_ref'
let _ = add_task_with_ref(print_data, &task_ref, opts);
}