Cargo Features
[dependencies]
shiva = { version = "1.4.9", default-features = false, features = ["all", "text", "csv", "markdown", "html", "pdf", "json", "xml", "rtf", "docx", "xlsx", "xls", "ods"] }
- 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, ods, pdf, rtf, text, xls, xlsx, xml
- text all
-
Affects
shiva::text
… - csv all
-
Enables csv
Affects
shiva::csv
… - markdown all = comrak, pulldown-cmark, regex
-
Affects
shiva::markdown
… - html all = ego-tree, scraper
-
Affects
shiva::html
… - pdf all = comemo, ehttp, lopdf, time, ttf-parser, typst, typst-pdf
-
Affects
shiva::pdf
… - json all = base64, serde, serde_json
-
Affects
shiva::json
… - xml all = quick-xml, serde, serde-xml-rs
-
Affects
shiva::xml
… - rtf all = image, rtf-parser
-
Affects
shiva::rtf
… - docx all = docx-rs
-
Affects
shiva::docx
… - xlsx all = calamine, rust_xlsxwriter
-
Affects
shiva::xlsx
… - xls all = calamine
-
Affects
shiva::xls
… - ods all = calamine, shiva-spreadsheet-ods
-
Affects
shiva::ods
…
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?
-
Enables scraper ^0.19.0
- ego-tree html?
-
Enables ego-tree ^0.6.2
- lopdf pdf?
-
Enables lopdf ^0.32.0
- serde_json json?
- serde json? xml?
- serde-xml-rs xml?
- quick-xml xml?
-
Enables quick-xml ^0.31.0
- typst pdf?
-
Enables typst ^0.11.0
Affects
shiva::typst
… - ttf-parser pdf?
-
Enables ttf-parser ^0.20.0
- comemo pdf?
- time pdf?
- typst-pdf pdf?
-
Enables typst-pdf ^0.11.0
- rtf-parser rtf?
-
Enables rtf-parser ^0.3.0
- docx-rs docx?
- pulldown-cmark markdown?
-
Enables pulldown-cmark ^0.11.0
- calamine ods? xls? xlsx?
-
Enables calamine ^0.24.0
- rust_xlsxwriter xlsx?
-
Enables rust_xlsxwriter ^0.64.2
- shiva-spreadsheet-ods ods?
- ehttp pdf?
- image rtf?
-
Enables image ^0.24.9
- comrak markdown?
-
Enables comrak ^0.28.0
- base64 json?