id_effect 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
//! Ex 035 — `layer_graph!` declares a small planner graph.
use id_effect::layer_graph;

fn main() {
  let g = layer_graph! {
    a => [A];
    b : [A] => [B];
  };
  let plan = g.plan_topological().expect("plan");
  assert!(plan.build_order.contains(&"a".to_owned()));
  println!("035_layer_graph ok");
}