Cargo Features

typst-preview = { version = "0.11.7", default-features = false, features = ["embed-fonts", "no-content-hint", "embed-html", "cli"] }
default = cli, embed-fonts

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

embed-fonts default

Embeds Typst's default fonts for
- text (Linux Libertine),
- math (New Computer Modern Math), and
- code (Deja Vu Sans Mono)
and additionally New Computer Modern for text
into the binary.

Enables typst-assets

no-content-hint cli

Disable the default content hint.
This requires modifying typst.

Enables no-content-hint of typst-ts-core

embed-html cli
cli default = clap, embed-html, hyper, no-content-hint, open, typst-ts-compiler

Required by the binary

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

typst-ts-compiler cli
clap cli
open cli
hyper cli

Enables hyper ^0.14