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.git
cd typstyle
cargo build # Debug build
cargo build --release # Release build
git clone https://github.com/typstyle-rs/typstyle.git
cd typstyle
cargo build # Debug build
cargo build --release # Release build
Install required tools:
# For testing
cargo binstall cargo-nextest cargo-insta
# For building wasm
cargo binstall wasm-pack
# For documentation
cargo binstall shiroa
# For testing
cargo binstall cargo-nextest cargo-insta
# For building wasm
cargo binstall wasm-pack
# For documentation
cargo 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