Cargo Features
[dependencies]
shiva = { version = "0.3.4", default-features = false, features = ["all", "text", "csv", "markdown", "html", "pdf", "json", "xml", "docx", "quick-xml"] }
- default = all
-
The
all
feature is set by default whenevershiva
is added without
somewhere in the dependency tree.default-features = false - all default = csv, docx, html, json, markdown, pdf, text, xml
- text all
-
Affects
shiva::text
… - csv all
-
Enables csv
Affects
shiva::csv
… - markdown all = regex
-
Affects
shiva::markdown
… - html all = ego-tree, scraper
-
Affects
shiva::html
… - pdf all = comemo, lopdf, time, ttf-parser, typst, typst-pdf
-
Affects
shiva::pdf
… - json all = serde, serde_json
-
Affects
shiva::json
… - xml all = serde, serde-xml-rs
-
Affects
shiva::xml
… - docx all = serde, serde-xml-rs
-
Affects
shiva::docx
…
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.
- regex markdown?
- scraper html?
- ego-tree html?
- lopdf pdf?
- serde_json json?
- serde docx? json? xml?
- serde-xml-rs docx? xml?
- quick-xml implicit feature
-
Enables quick-xml
quick-xml:
High performance xml reader and writer
- typst pdf?
- ttf-parser pdf?
-
Enables ttf-parser ^0.20.0
- comemo pdf?
- time pdf?
- typst-pdf pdf?