Cargo Features

[dependencies]
typst-ts-compiler = { version = "0.5.0-rc6", default-features = false, features = ["emoji", "lazy-fontdb", "no-content-hint", "system-compile", "system-watch", "system", "dynamic-layout", "web-render", "browser-compile", "browser-embedded-fonts", "web", "dirs", "walkdir", "fontdb"] }
default = dynamic-layout, system

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

cjk emoji
lazy-fontdb

Enables rayon

no-content-hint

Enables no-content-hint of reflexo-world and typst-ts-core

system-compile system

Enables rayon, glyph2vec of typst-ts-core, system of reflexo-vfs and reflexo-world

Affects typst-ts-compiler::CompileDriver

system-watch system

Enables notify ^6 and tokio

system default = system-compile, system-watch

Affects time::now

dynamic-layout default

Enables typst-ts-svg-exporter

web-render browser-compile? web?

Enables serde-wasm-bindgen, js-sys and pollster ^0.3.0, wasm-bindgen, wasm-bindgen-futures, and web-sys, web of typst-ts-core, web of reflexo-vfs and reflexo-world

browser-compile web? = web-render

Enables serde-wasm-bindgen, js-sys and pollster ^0.3.0, wasm-bindgen, wasm-bindgen-futures, and web-sys, glyph2vec and web of typst-ts-core, browser and web of reflexo-vfs and reflexo-world

browser-embedded-fonts

Enables serde-wasm-bindgen, js-sys and pollster ^0.3.0, wasm-bindgen, wasm-bindgen-futures, and web-sys, web of typst-ts-core, web of reflexo-vfs and reflexo-world

web = browser-compile, web-render

Enables serde-wasm-bindgen, js-sys and pollster ^0.3.0, wasm-bindgen, wasm-bindgen-futures, and web-sys, web of typst-ts-core, web of reflexo-vfs and reflexo-world

Affects time::now

Features from optional dependencies

dirs implicit feature
walkdir implicit feature

Enables walkdir

walkdir:

Recursively walk a directory

fontdb implicit feature

Enables fontdb ^0.16

fontdb:

A simple, in-memory font database with CSS-like queries