Weftmap
RUST

Rust call graph generator

Trace how the functions in a Rust module reach each other, without waiting on a full cargo check. Paste a file and the diagram appears.

Open the editor

Example

example.rs
fn run() -> i32 {
    let total = sum_invoices(fetch_invoices());
    report(total);
    total
}

fn fetch_invoices() -> Vec<i32> {
    vec![1000, 2500, 400]
}

fn sum_invoices(amounts: Vec<i32>) -> i32 {
    amounts.iter().sum()
}

fn report(total: i32) {
    println!("total: {total}");
}

What the graph shows

Free functions and their calls become the graph. Because the parse is purely syntactic, the file does not need to compile — you can point Weftmap at a module mid-refactor, while the borrow checker is still unhappy with it, and still get a readable picture.

Now try it with your own code

Paste a file, pick the language, hit Analyze. Nothing is stored.

Open the editor