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
somewhere in the dependency tree.default-features = false - sys-lib
-
Use system libs for all thirdparty libs
- 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
- js default
- xps default
- svg default
- cbz default
- img default
- html default
- epub default
- all-fonts
- 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.