Crates.io | structiagram |
lib.rs | structiagram |
version | 0.1.3 |
source | src |
created_at | 2022-04-22 09:59:40.817924 |
updated_at | 2023-01-31 04:41:37.083372 |
description | Structiagram is a tool to generate Rust struct relation diagram as mermaid.js format. |
homepage | |
repository | https://github.com/ymgyt/structiagram |
max_upload_size | |
id | 572083 |
size | 50,223 |
Structiagram is a tool to generate Rust struct relation diagram as mermaid.js
format.
Install structiagram
as a CLI executable using cargo
cargo install structiagram
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
This project is available under the terms of either the Apache 2.0 license or the MIT license.