static-graph

Crates.io License Build Status

This crate provides the ability to generate static graphs by analysing the node dependencies in DSL. It allows only one input and one output in a graph, and independent nodes can run in parallel.

Usage

Add this to your Cargo.toml:

toml [build-dependencies] static-graph = "0.1"

Example

Write a graph description in a .graph file:

```txt node E -> (X, Y) {

}

node X -> O {

}

node Y -> O {

}

node O {

}

graph G(E) ```

Then, in build.rs:

rust fn main() { static_graph::configure().compile(".graph").unwrap(); }

Finally, in main.rs write your own logic.

License

Volo is dual-licensed under the MIT license and the Apache License (Version 2.0).

See LICENSE-MIT and LICENSE-APACHE for details.

Community