A Rust Digital Timing Diagram generator based on WaveDrom
The wavedrom-rs
crate provides an interface to shape beautiful Digital Timing
Diagrams into an SVG. It is almost completely compatible with the
WaveDrom project. It can be merged into document build tools,
continuous integration or be used as a one off to generate beautiful
diagrams.
There are currently four ways to use wavedrom-rs
:
- All original WaveDrom Signal Types
- Signal Groups
- Arrows and Indicator Markers
- Headers and Footers
- Cycle Enumeration Markers
- Editor Website through WASM
- MdBook Preprocessor
- Full Customization via Skins
This project uses the same syntax for WaveJson as the original WaveDrom project. Therefore, the original Hitchhiker's Guide to WaveDrom is still a good introduction into several concepts of of WaveJson. Additionally, this repository maintains a reference book.
Tests are written in the ./tests
directory and can be generated
using the ./tests/run.py
scripts. This will generate a
result.html
in the tests
directory that contains all the rendered SVGs for
each json5
file in the ./tests
directory.
# Usage:
cd ./tests
./run [path/to/skin.json5]
This project is fuzzed with cargo-fuzz
. This improves the
stability of the project.
cargo +nightly fuzz run wavejson-render
This crate currently only compiles with Rust 1.70. To select that version use:
rustup update 1.70 --no-self-update && rustup default 1.70
Please report any bugs and possible improvements as an issue within this repository. Pull requests are also welcome.
Licensed under a MIT License. The demo website utilizes icons from Lucide which are licensed under an ISC license.