| Crates.io | rust_tikz |
| lib.rs | rust_tikz |
| version | 0.1.0 |
| created_at | 2025-05-13 18:06:45.005239+00 |
| updated_at | 2025-05-13 18:06:45.005239+00 |
| description | A Rust runtime for TeX and TikZ, powered by WebAssembly. |
| homepage | |
| repository | |
| max_upload_size | |
| id | 1672275 |
| size | 74,074,783 |
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.
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
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