Skip to content

TEECOM/rust2uml

 
 

Repository files navigation

rust2uml

Make UML from a directory of rust files.

Install Dependencies

The dot binary from graphviz package must exist in your path. This is usually provided by the graphviz package in your package manager of choice.

Toolchain

Note that the rust-toolchain.toml specifies an older nightly toolchain. Newer toolchains will require source changes. Nightly is required to use #![feature(rustc_private)].

Build and run example

The library can be executed via the ml example:

  • --src_name arg will name the generated .dot and .svg files
  • --src_dir should point to the src/ directory of the crate that you are modeling
cargo run --example ml -- --src_name my_crate --src_dir /Users/me/crates/my_crate/src

The output will be in the target/doc/<src_name> directory. One of the files is an SVG that can be viewed with a web browser.

Usage

All command line args can be viewed in examples/main.rs.

About

A library to generating UML language from Rust's project into graphiz/dot file.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 89.0%
  • PHP 11.0%