GithubHelp home page GithubHelp logo

coastalwhite / wavedrom-rs Goto Github PK

View Code? Open in Web Editor NEW
70.0 1.0 2.0 1.45 MB

Beautiful Digital Timing Diagrams with Rust

Home Page: https://coastalwhite.github.io/wavedrom-rs

License: Apache License 2.0

Rust 84.11% HTML 8.05% JavaScript 5.60% Python 1.17% SCSS 0.02% Shell 0.27% Nix 0.78%
diagrams digital logic svg timing wasm wavedrom waveform

wavedrom-rs's Introduction

wavedrom-rs signal

A Rust Digital Timing Diagram generator based on WaveDrom


Demo | Tutorial

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.

Banner Image

There are currently four ways to use wavedrom-rs:

Features

  • 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

Documentation

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.

Testing

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]

Fuzzing

This project is fuzzed with cargo-fuzz. This improves the stability of the project.

cargo +nightly fuzz run wavejson-render

MSRV

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

Contribution

Please report any bugs and possible improvements as an issue within this repository. Pull requests are also welcome.

License

Licensed under a MIT License. The demo website utilizes icons from Lucide which are licensed under an ISC license.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.