How to use this developer tool
- Paste Rust source code.
- Select outline, JSON, or implementation-map output.
- Set a maximum symbol count for very large files.
- Parse the code and inspect declaration names and source lines.
Extract Rust modules, structs, enums, traits, implementations, functions, attributes, generics, and source locations into a searchable outline or JSON symbol table.
This structural parser scans Rust declarations without invoking rustc. It is designed for code navigation and documentation workflows rather than compiler-accurate AST generation.
Macro-generated declarations and highly complex syntax may not be represented completely. Use rustc tooling for compiler-grade AST analysis.
The page loads a working Rust Parser example. Run the tool to compare the sample input with the generated output and status summary.
Paste the source and choose Readable outline or JSON symbol table to list declarations with line numbers.
Yes. Implementation map mode extracts common impl Trait for Type and impl Type declarations.
No. It performs browser-based structural parsing and does not replace rustc parser APIs.
No. It performs browser-based formatting, conversion, structural parsing, or heuristic analysis. Always verify production code with the official toolchain.
No processing is implemented by the page itself in your browser. Review your hosting and analytics configuration separately if you add external services.
| Module | Coverage |
|---|---|
| Declarations | Structs, enums, traits, functions |
| Mappings | Impl targets and traits |
| Export | Readable text or JSON |