Developer Guide
This guide covers environment setup, building, testing, and documentation for Typstyle.
- Rust stable toolchain with cargo
- Node.js and pnpm (for web assets)
- cargo-nextest and cargo-insta (for testing)
- shiroa (for documentation)
Clone and build the project:
git clone https://github.com/typstyle-rs/typstyle.gitcd typstylecargo build # Debug buildcargo build --release # Release build
git clone https://github.com/typstyle-rs/typstyle.gitcd typstylecargo build # Debug buildcargo build --release # Release build
Install required tools:
# For testingcargo binstall cargo-nextest cargo-insta# For building WASMcargo binstall wasm-pack# For documentationcargo binstall shiroa
# For testingcargo binstall cargo-nextest cargo-insta# For building WASMcargo binstall wasm-pack# For documentationcargo binstall shiroa
crates/typstyle/crates/typstyle/— formatter CLIcrates/typstyle-core/crates/typstyle-core/— core formatting logiccrates/typstyle-consistency/crates/typstyle-consistency/— consistency test frameworkcrates/typstyle-typlugin/crates/typstyle-typlugin/— Typst plugin for embedded usagecrates/typstyle-wasm/crates/typstyle-wasm/— WASM bindingstests/tests/— integration tests and fixturesdocs/docs/— documentation source (based on shiroa and written in Typst)contrib/typstyle-embedded/contrib/typstyle-embedded/— Typstyle as Typst packageplayground/playground/— web-based interactive playground