app structiagram

Structiagram is a tool to generate Rust struct relation diagram as mermaid.js format

4 releases

0.1.3 Jan 31, 2023
0.1.2 Apr 30, 2022
0.1.1 Apr 23, 2022
0.1.0 Apr 22, 2022

MIT/Apache

19KB
397 lines

Structiagram

Structiagram is a tool to generate Rust struct relation diagram as mermaid.js format.

Installation


Cargo Installation

Install structiagram as a CLI executable using cargo

cargo install structiagram

Usage


Run structiagram --help for the structiagram CLI parameter usage.

$ structiagram --help
structiagram 0.1.2

USAGE:
structiagram [OPTIONS] --dir <DIR>

OPTIONS:
--dir <DIR> Root directory to parse files
-h, --help Print help information
-o, --output <OUTPUT> Output file. default stdout. The '-' is interpreted as stdout
-V, --version Print version information

Example usage of generating a diagram

structiagram --dir src

Example usage of generating a diagram and saving the output to a markdown file

structiagram --dir src --output project_diagram.md

🪪 License


This project is available under the terms of either the Apache 2.0 license or the MIT license.

Dependencies

~5–14MB
~194K SLoC