#documentation #svg #protocols #binary #text-color #background-color

protoviz

A fast and intuitive way of creating figures for protocol documentation

12 releases (4 breaking)

new 0.5.1 Jul 12, 2024
0.5.0 Jul 12, 2024
0.4.2 Jul 10, 2024
0.3.2 Jul 4, 2024
0.1.0 Jul 1, 2024

#253 in Images

Download history 252/week @ 2024-06-28

252 downloads per month

MIT license

59KB
620 lines

ProtoViz

Example

A fast and intuitive way of creating figures for protocol documentation.

Supports many features:

  • Fixed and variable size fields
  • Big and Little Endianness
  • Many styling options (Background color, field color, text color)
  • Line wrapping
  • Field length and position subtitles
  • Custom field width

It uses Tera for generating the SVG file.

For a pratical use case, check the examples readme or the ProtoViz Website.


lib.rs:

ProtoViz

A fast and intuitive way of creating figures for protocol documentation.

For an example of how to use this library, check the examples folder or the ProtoViz Website.

Dependencies

~7–17MB
~215K SLoC