Skip to content
debalex77Public

About

A report generation engine written in Rust

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

report-rs

report-rs

A visual, band-based report designer and rendering engine written in Rust.

CI License Rust 2024 Release Downloads Stars

report-rs Designer

img.png

Alpha software: the report format and user interface may still change.

What it does

report-rs provides a graphical Designer, interactive Preview and PDF renderer for JSON report templates. It is inspired by traditional band-based reporting tools while keeping the model and layout engine independent from the renderer.

Key features:

  • Report, page, data, group and footer bands with automatic pagination.
  • SQLite queries, parameters, filtering and sorting.
  • Text, lines, rectangles, file images and database BLOB images.
  • Value formatting, report functions and group subtotals.
  • Nested horizontal and vertical layouts.
  • Visual table generation, including row numbers and multiple grouping levels.
  • Preview progress, processing metrics and PDF export.

Run from source

Requirements: a current stable Rust toolchain and a Linux desktop environment.

Linux runtime dependencies: zenity (file dialogs), xdg-open (external PDF viewer launch), and installed fonts. DejaVu Sans is recommended for the examples; Preview falls back to system fonts if its usual Linux font file is absent. On Ubuntu/Debian, install zenity, xdg-utils and fonts-dejavu-core.

git clone https://github.com/debalex77/report-rs.git
cd report-rs
cargo run --release -p report-designer

Open a report directly:

cargo run --release -p report-designer -- examples/group_products.report.json

Run Preview directly:

cargo run --release -p report-preview -- examples/group_products.report.json

Build and test

cargo build --workspace --release --locked
cargo test --workspace --locked
cargo fmt --all -- --check

Release archives contain report-designer, report-preview, examples and the license. Download them from GitHub Releases.

Examples

  • simple.report.json — basic static report.
  • products_price.report.json — SQLite data and database BLOB images.
  • group_products.report.json — products grouped by category.
  • nested_group_products.report.json — nested grouping and subtotals.

The database-backed examples expect examples/test.sqlite3 beside the report. The bundled database contains fictional demonstration data, as confirmed by the maintainer; it is not production data.

Project layout

crates/report-core      report model, data and layout engine
crates/report-designer  graphical report designer
crates/report-preview   interactive preview and PDF export
crates/report-pdf       PDF renderer
crates/report-cli       minimal embedding example

Development notes and architecture are documented in docs/DEVELOPMENT.md. Changes included in each version are listed in CHANGELOG.md. End-user instructions are available in the User Manual.

License

Project code is licensed under the MIT License. Third-party artwork retains its own licenses; see Third-party notices.

About

A report generation engine written in Rust

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages