rust-callgraph
rust-callgraph copied to clipboard
Which functions call each other in your rust crate? Static call graph analysis.
Something along the line of: ``` # Install rust with rustup $ rustc --version rustc 1.50.0 (cb75ad5db 2021-02-10) git clone https://github.com/heinzelotto/rust-callgraph cd rust-callgraph # | # | I'm not sure...
``` $ cargo +nightly build Compiling rust-callgraph v0.1.0 (/home/fkarg/Coding/rust-callgraph) error[E0462]: found staticlib `rustc` instead of rlib or dylib --> src/main.rs:3:1 | 3 | extern crate rustc; | ^^^^^^^^^^^^^^^^^^^ | =...
Rustc has been able to find the sysroot based on the location of librustc_driver.so in addition to the location of the main executable for a while now.
This tool currently requires `nightly-2024-08-07`[^1]. Cargo manifests that specify `edition = "2024"` cannot be used with this tool except by modifying the `Cargo.toml` itself by adding `cargo-features = ["edition2024"]`. for...