Installation
typstgen ships as one crate on crates.io. Install the CLI with cargo, or add the crate as a library.
cargo install typstgen
typstgen --versionInstalls the current state of the master branch instead of the last release:
cargo install --git https://github.com/casoon/typstgenThe CLI is behind the default cli feature. Turn default features off to skip clap when you only
need the library:
cargo add typstgen --no-default-featuresRequirements
| Minimum | Notes | |
|---|---|---|
| Rust | 1.92 |
rust-version in Cargo.toml, edition 2021 |
| Typst | – | Embedded: compiled with typst and typst-pdf 0.15 |
No typst binary and no system fonts are needed. Typst’s fallback fonts are compiled into every
build, see Fonts.
Features
| Feature | Default | Adds |
|---|---|---|
cli |
yes | The typstgen binary (via clap) |
wasm |
no | A wasm-bindgen export for JavaScript hosts |
The Wasm build is covered in the Rust and Wasm reference.
Next steps
Continue with the Quickstart.