Cargo Features

typst-as-lib has no features set by default.

[dependencies]
typst-as-lib = { version = "0.14.1", features = ["packages", "ureq", "reqwest", "typst-kit-fonts", "typst-kit-embed-fonts"] }
packages

Enables binstall-tar and flate2

Affects typst-as-lib::package_resolver

ureq

Enables ureq

Affects typst-as-lib::package_resolver

reqwest

Enables bytes and reqwest

Affects typst-as-lib::package_resolver

typst-kit-fonts

Enables fonts of typst-kit

typst-kit:

Add font loading utilities

Affects typst-as-lib::typst_kit_options

typst-kit-embed-fonts

Enables embed-fonts of optional typst-kit

typst-kit:

Embeds some fonts into the binary:

  • For text: Libertinus Serif, New Computer Modern
  • For math: New Computer Modern Math
  • For code: Deja Vu Sans Mono

Implies fonts