The report engine, ported to Rust.
A Rust port of isis-report-lib: the same payload contract and hierarchical layouts, rendered to HTML, PDF, XLSX, CSV and plain text. The Python library remains the behavioral reference — parity is checked with golden fixtures.
- Rust
- crates.io
- docs.rs
- 13 locales
- MIT
What it does
One payload, five outputs, no server required.
-
Same payload contract
meta+ optionallayout+data, or composedsections. The envelope is validated strictly: unknown keys fail closed. -
Native outputs
HTML, PDF, XLSX, CSV and plain text from the same document. Export features are opt-in flags, so a service only compiles what it uses.
-
PDF without a service
Chromium via
chromiumoxide+ Tokio, pooled per process. Pages render with JavaScript disabled, service workers bypassed and outbound HTTP(S) blocked unlessallowed_hostsis set. -
Real Excel workbooks
Native XLSX through
rust_xlsxwriter— charts, data bars and conditional formats, not a CSV with an .xlsx extension. -
Data in, all the way
Builders for Arrow, Polars, DuckDB and SQLite, plus
from_rowsfor any DB-API-style driver. Dates, datetimes and decimals stay native values. -
CLI included
isis-report generate,render,schema,keygen,signandverify— the same commands as the Python package. -
13 locales
pt-BR, en-US, pt-PT, de-DE, fr-FR, es-ES, ja-JP, ar-EG, he-IL, ru-RU, zh-CN, hi-IN and en-GB match Babel for numbers, currency and medium dates; other locales use ICU4X/CLDR.
-
Quality gates
Formatting, clippy with
-D warnings, Linux tests, Chromium PDF e2e on Windows/macOS,cargo-deny, MSRV 1.89, weekly fuzzing and Criterion benchmarks.
Outputs
Pick the API for what the caller needs.
| Output | API | Notes |
|---|---|---|
| HTML | render_html |
Intermediate document; no browser needed. |
generate_pdf / generate_pdf_async |
Pooled Chromium; sync callers get a private Tokio runtime. | |
| XLSX | generate_xlsx |
Needs the xlsx feature. |
| CSV | generate_csv |
Locale-formatted values, optional BOM for Excel. |
| Plain text | render_text |
Same document as text; optional sanitization. |
Feature flags: pdf, xlsx, email, sign,
arrow, polars, duckdb, sqlite,
schema, cli and weasyprint-cli.
Quick start
Install the CLI, render a report.
cargo install isis-report-lib --features cli
isis-report generate report.json -o report.pdf
isis-report generate report.json -o report.xlsx
isis-report render report.json --format html -o report.html
PDF needs a local Chromium/Chrome. ISIS_REPORT_PDF_WORKERS sizes the browser
pool (1-8); shutdown_pdf_pool() closes it in long-lived processes.
Python parity
A port, not a fork of the behavior.
The Python library defines the expected output. The parity/ scripts generate
golden fixtures, and Python semantics for ordering, equality, truthiness and
in are isolated in pyops so the Rust code can be checked
against them. The repository documents the differences in a parity audit and records
architecture decisions as ADRs.
Early release: the API can still change between minor versions while the port reaches full coverage.
Links
- crates.ioThe published crate
- docs.rsAPI reference and compiling examples
- Sourcegithub.com/thepaneb/rust-isis-report-lib
- Migration guidePython to Rust, call by call
- Parity auditWhere the port matches and where it differs
- ADRsArchitecture decisions
The Python implementation lives at the isis-report-lib docs site.