Skip to main content

Crate typst_batch

Crate typst_batch 

Source
Expand description

§typst-batch

Typst batch compilation library with shared resources.

§Features

  • Shared fonts, packages, and file cache across compilations
  • Fast scanning API (skip Layout phase, 5-20x faster)
  • JSON ↔ Typst Content bidirectional conversion
  • Colored diagnostics

§Modules

  • process - Compile and scan APIs
  • codegen - JSON ↔ Typst conversion
  • resource - Shared resources (font, package, file, library)
  • world - Typst World implementation
  • diagnostic - Error formatting
  • html - HTML document utilities

Re-exports§

pub use prelude::*;

Modules§

codegen
Typst code generation and type conversion.
diagnostic
Diagnostic formatting for Typst compilation errors and warnings.
html
Stable HTML document wrappers for traversal.
prelude
Prelude module for convenient imports.
process
Document processing pipeline.
resource
Shared resources for Typst compilation (fonts, packages, file cache).
world
World implementations for Typst compilation.