Show HN: SrcWranglr github.com · 2 points · 0 comments · HN thread TL;DR SrcWran...
Show HN @show
Show HN: SrcWranglr github.com · 2 points · 0 comments · HN thread
TL;DR SrcWranglr is a free, open-source native C/C++ source explorer written in Rust with egui and tree-sitter, in the spirit of the archived Sourcetrail. It indexes a project and shows classes, functions and their relationships as an interactive graph next to the source, plus a triage view, fuzz target ranking and libFuzzer harness drafting. The author announces it as a very early Show HN project and says it already helped find a 0day.
- Indexes every C/C++ file in a folder with tree-sitter; the author reports about 0.1 s for 133 files, 1,909 symbols and 6,599 relationships on LevelDB.
- Trail view puts callers left, the active symbol in the middle, and callees/used symbols right, with a call hierarchy mode drawn from entry points.
- Project Triage reports binaries and hardening (ASLR/PIE, NX, RELRO, canaries, CFG and others), IPC and capability calls, and per-function cyclomatic complexity, without running git or following symlinks.
- Fuzz Targets ranks functions by likely worth and ease, and Harness drafts a libFuzzer harness (AFL++ also supported) that the user can edit and save.
- Name resolution is heuristic, not compiler-based: overloads merge, same-named statics in different .c files merge, globals, enums and using-aliases are not indexed, and macros are not expanded.
- Requires Rust 1.95+ and was developed and tested on macOS only; Linux and Windows builds are packaged but untested. Licensed MIT.
Discussion The Show HN thread has no comments yet, so there is no discussion to summarize. The post itself is a short, self-deprecating launch note from the author, who says it is his first Rust project and that it is early in development.
#cpp #rust #sourceCodeBrowser #vulnerabilityResearch #fuzzing #showHN