Cargo Features

[dependencies]
mupdf = { version = "0.4.4", default-features = false, features = ["sys-lib", "sys-lib-freetype", "sys-lib-gumbo", "sys-lib-harfbuzz", "sys-lib-jbig2dec", "sys-lib-libjpeg", "sys-lib-openjpeg", "sys-lib-zlib", "sys-lib-leptonica", "sys-lib-tesseract", "tesseract", "js", "xps", "svg", "cbz", "img", "html", "epub", "all-fonts", "system-fonts"] }
default = cbz, epub, html, img, js, svg, system-fonts, tesseract, xps

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

sys-lib

Use system libs for all thirdparty libs

Enables sys-lib of mupdf-sys

sys-lib-freetype

Use system freetype

Enables sys-lib-freetype of mupdf-sys

sys-lib-gumbo

Use system gumbo parser

Enables sys-lib-gumbo of mupdf-sys

sys-lib-harfbuzz

Use system harfbuzz

Enables sys-lib-harfbuzz of mupdf-sys

sys-lib-jbig2dec

Use system jbig2dec

Enables sys-lib-jbig2dec of mupdf-sys

sys-lib-libjpeg

Use system libjpeg

Enables sys-lib-libjpeg of mupdf-sys

sys-lib-openjpeg

Use system openjpeg

Enables sys-lib-openjpeg of mupdf-sys

sys-lib-zlib

Use system zlib

Enables sys-lib-zlib of mupdf-sys

sys-lib-leptonica

Use system leptonica

Enables sys-lib-leptonica of mupdf-sys

sys-lib-tesseract

Use system tesseract

Enables sys-lib-tesseract of mupdf-sys

tesseract default

Enables tesseract of mupdf-sys

js default

Enables js of mupdf-sys

xps default

Enables xps of mupdf-sys

svg default

Enables svg of mupdf-sys

cbz default

Enables cbz of mupdf-sys

img default

Enables img of mupdf-sys

html default

Enables html of mupdf-sys

epub default

Enables epub of mupdf-sys

all-fonts

Enables all-fonts of mupdf-sys

system-fonts default = font-kit

Affects mupdf::system_font

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.

font-kit system-fonts