shiva-0.2.3 has been yanked.
Shiva

Shiva library: Implementation in Rust of a parser and generator for documents of any type
Features
- Common Document Model (CDM) for all document types
- Parsers produce CDM
- Generators consume CDM
Supported document types
| Document type | Parse | Generate |
|---|---|---|
| Plain text | + | + |
| Markdown | + | + |
| HTML | + | + |
| + | + | |
| JSON | - | - |
| XML | - | - |
| DOC | - | - |
| XLS | - | - |
Parse document features
| Document type | Header | Paragraph | List | Table | Image | Hyperlink | PageHeader | PageFooter |
|---|---|---|---|---|---|---|---|---|
| Plain text | - | + | - | - | - | - | - | - |
| Markdown | + | + | + | + | + | + | - | - |
| HTML | + | + | + | + | + | + | - | - |
| - | + | + | - | - | - | - | - |
Generate document features
| Document type | Header | Paragraph | List | Table | Image | Hyperlink | PageHeader | PageFooter |
|---|---|---|---|---|---|---|---|---|
| Plain text | + | + | + | + | - | + | - | - |
| Markdown | + | + | + | + | + | + | + | + |
| HTML | + | + | + | + | + | + | - | - |
| + | + | - | + | - | - | + | + |
Usage Shiva library
Cargo.toml
[]
= { = "0.2.3", = ["html", "markdown", "text", "pdf"] }
main.rs
Shiva CLI
Install Rust for Linux/MacOS
|
Install Rust for Windows
Build executable Shiva
Run executable shiva