Registry / async / fn-graph

fn-graph

JSON →
library0.18.0rscratesunverified

Runs interdependent functions concurrently, starting each when its dependencies complete.

# Cargo.toml [dependencies] fn_graph = "0.18.0"
INSTALL
IMPORT
SIG · FN-GRAPH
F
fn-graph
asyncrustv0.18.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

FnGraph
use fn_graph::FnGraph;

Creates and executes a simple function graph.

use fn_graph::FnGraph; fn main() { let mut graph = FnGraph::new(); graph.add_node(|| println!("Task A")); graph.add_node(|| println!("Task B")); graph.execute(); }
Debug
Known issues
gotchaPanic safety: if a function panics, the entire graph execution may abort.
fix
Wrap panicking code in std::panic::catch_unwind.
affects: >=0.18.0
Upgrade
Version history
0.18.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
31 hits · last 30 days
node
28
OpenAI (training)
1
Resources
fn-graph — cargo add fn-graph · libregistry