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.
Add this to your Cargo.toml
:
toml
[build-dependencies]
static-graph = "0.1"
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.
Volo is dual-licensed under the MIT license and the Apache License (Version 2.0).
See LICENSE-MIT and LICENSE-APACHE for details.
Feishu: Scan the QR code below with Feishu or click this link to join our CloudWeGo Volo user group.