Cargo Features

[dependencies]
typst-kit = { version = "0.12.0", default-features = false, features = ["fonts", "downloads", "packages", "embed-fonts", "vendor-openssl"] }
default = fonts, packages

These default features are set whenever typst-kit is added without default-features = false somewhere in the dependency tree.

fonts default embed-fonts?

Add font loading utilities

Enables fontconfig and memmap of fontdb ^0.21

Affects typst-kit::fonts

downloads packages

Add generic downloading utilities

Enables env_proxy, native-tls, openssl, and ureq

Affects typst-kit::download

packages default = downloads

Add package downloading utilities, implies downloads

Enables dirs, flate2, and tar

Affects typst-kit::package

embed-fonts = fonts

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

Enables fonts of typst-assets

vendor-openssl

Whether to vendor OpenSSL. Not applicable to Windows and macOS builds.

Enables vendored of openssl