TransWikia.com

What free static analysis tools are available for Rust?

Software Recommendations Asked by happybeing on September 26, 2021

My need is to understand an existing Rust codebase.

I have the ability to see the module/trait/function hierarchy using rustdoc, and to quickly jump to refs and defs using VS Codium (privacy respecting VS Code), but would like a tool to help with things like generating and browsing the static call graph.

I’ve been searching and asking around for a couple of days without success, so asking: What free static analysis tools are available for Rust?

One Answer

Call Hierarchy is available in VSCode / VSCodium but only if you have rust-analyzer rather than RLS selected.

Using rust-analyzer you will have "Show Call Hierarchy" on the right-click menu.

If you are using RLS, as the Rust-client: Engine setting change it to rust-analyzer by typing Ctrl-, to get to settings, then type 'Rust' to filter the list and scroll to 'Rust-client: Engine' and choose 'rust-analyzer'. You will also need to close and re-open the workspace.

Answered by happybeing on September 26, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP