Expand description
Safe, deterministic, embedded Typst for Rust applications.
Modules§
- conformance
- The frozen ctypst-measure-v1 request vectors, shipped with the crate so dependents (facades, ports) replay exactly the vectors of the release they link.
- fonts
- Embedded document font pack and its license metadata.
- measure
- Typed native adapter for the versioned measurement protocol.
- wasm
- WebAssembly boundary: the whole
ctypstruntime for browsers and Node.
Structs§
- Compile
Output - Successful Typst output and any explicitly accepted warnings.
- Compile
Report - One compilation result together with the project files it consulted.
- Compile
Request - One compilation request.
- Document
- A finished document with metadata and page frames.
- Engine
- A reusable embedded Typst compiler with no ambient network or font access.
- Engine
Builder - Builder for a capability-limited embedded Typst engine.
- Limits
- Finite resource limits applied to every engine.
- Raster
Page - One Typst page rendered as tightly packed RGBA8 pixels.
Enums§
- Diagnostics
Policy - How compilation warnings affect success.
- Error
- A
ctypstpolicy, compilation, or export failure. - Page
Constraint - Page-count requirement for one compilation.
Functions§
- format_
source - Format Typst source deterministically with Typstyle.
- query_
json - Query every metadata value carrying
labeland serialize it as JSON.
Type Aliases§
- Result
- Result type used by
ctypst.