Cargo Features

[dependencies]
reflexo-typst = { version = "0.5.0-rc7", default-features = false, features = ["full", "system", "web", "flat-vector", "lazy-fontdb", "experimental-ligature", "no-content-hint", "glyph2vec", "dynamic-layout", "system-compile", "system-watch", "browser-compile", "browser-embedded-fonts", "web-render", "ast", "pdf", "svg", "rkyv", "dirs", "walkdir", "fontdb"] }
default = full

The full feature is set by default whenever reflexo-typst is added without default-features = false somewhere in the dependency tree.

full default = dynamic-layout, flat-vector, glyph2vec, system, web
system full = system-compile, system-watch

Affects time::now

web full = browser-compile, web-render

Affects time::now

flat-vector full

Enables flat-vector of reflexo

lazy-fontdb
experimental-ligature

Enables experimental-ligature of reflexo-vec2svg

no-content-hint

Enables no-content-hint of reflexo-typst2vec

glyph2vec browser-compile? full system-compile?

Enables glyph2vec of reflexo-typst2vec

dynamic-layout full

Enables reflexo-vec2svg

system-compile system? = glyph2vec

Enables system of reflexo-vfs and reflexo-world

Affects reflexo-typst::task, reflexo-typst::CompileDriver

system-watch system?

Enables notify and tokio

browser-compile web? = glyph2vec, web-render

Enables js-sys, web-sys, browser of reflexo-vfs and reflexo-world

browser-embedded-fonts

Enables js-sys and web-sys

web-render browser-compile? web?

Enables js-sys, web-sys, web of reflexo-vfs and reflexo-world

ast = ansi_term

Affects exporter::ast

pdf = typst-pdf

Affects exporter::pdf

svg

Enables reflexo-vec2svg

Affects exporter::svg

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-pdf pdf?
rkyv implicit feature

Enables rkyv ^0.7.42

rkyv:

Zero-copy deserialization framework for Rust

ansi_term ast?
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