rust_tikz

Crates.iorust_tikz
lib.rsrust_tikz
version0.1.0
sourcesrc
created_at2025-05-13 18:06:45.005239+00
updated_at2025-05-13 18:06:45.005239+00
descriptionA Rust runtime for TeX and TikZ, powered by WebAssembly.
homepage
repository
max_upload_size
id1672275
size74,074,783
Jason Siefken (siefkenj)

documentation

README

rust-tikzjax

Rust runtime for TikZ diagrams

rust-tikzjax is a rust runner for tikz. It builds off of the work of tikzjax and node-tikzjax.

tikzjax is a WASM-compiled version of the TeX program. It comes with Javascript bindings to handle the system calls that TeX makes. rust-tikzjax reimplements these systems calls in Rust. It then runs the WASM version of TeX using wasmi, which is a WASM runtime that itself can be compiled to WASM.

The end result is a fully self-contained version of tikz that can input TeX source and output SVG images.

Development

To get started, clone the repository, make sure you have rust and cargo installed, and run

cargo build

or, to execute example code run

cargo run

TeX source code

Documentation for the TeX source code, including all system calls (that TeX relies on from Pascal) at https://tug.ctan.org/info/knuth-pdf/tex/tex.pdf

Commit count: 0

cargo fmt