Developer Guide
This guide covers environment setup, building, testing, and documentation for typstyle.
- Rust stable toolchain with cargo
- Node.js and yarn (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