Skip to main content

Crate typst_as_lib

Crate typst_as_lib 

Source
Expand description

Small wrapper around Typst that makes it easier to use it as a templating engine.

See the repository README for usage examples.

Inspired by https://github.com/tfachmann/typst-as-library/blob/main/src/lib.rs

Modules§

cached_file_resolver
Caching wrapper for file resolvers.
conversions
Type conversion traits for Typst types.
file_resolver
File resolution for Typst sources and binaries.

Structs§

TypstEngine
Main entry point for compiling Typst documents.
TypstTemplateCollection
Type state indicating no main file is set.
TypstTemplateEngineBuilder
Builder for constructing a TypstEngine.
TypstTemplateMainFile
Type state indicating a main file has been set.

Enums§

FontEnum
Wrapper for different font types.
TypstAsLibError
Errors that can occur when using typst-as-lib.