Skip to main content

Embedding a Flow in Rust

Hydroflow's surface syntax is typically used within a Rust program. (An interactive client and/or external language bindings are TBD.)

The surface syntax is embedded into Rust via a macro as follows

use hydroflow::hydroflow_syntax;

fn main() {
let mut flow = hydroflow_syntax! {
// Hydroflow Surface Syntax goes here
};
}

The resulting flow object is of type Hydroflow.