logisheets-rs
The Rust API for LogiSheets — a
spreadsheet engine written in Rust that reads, edits, and writes .xlsx
files, with full formula evaluation, dependency tracking, and undo/redo.
This crate is the public, ergonomic entry point over the internal engine
crates (logisheets_controller, logisheets_workbook, …). Add just this one:
[]
= "1.3"
Quick start
use ;
Concepts
Workbook— the top-level handle.Workbook::default()starts a fresh book;Workbook::from_file(&bytes, name)opens an existing.xlsx.- Edits are transactions. Build a
PayloadsActionfrom one or moreEditPayloads (e.g.CellInput,SetColWidth,MergeCells,InsertRows) and apply it withhandle_action(EditAction::Payloads(..)). Payloads grouped into one action are one undoable step. - Undo/redo —
wb.undo()/wb.redo(). - Reading — get a
Worksheetviaget_sheet_by_idx, thenget_cell_info(row, col)for value/formula/style, or a display window for viewport rendering. - Saving —
wb.save()returns the.xlsxfile asVec<u8>.
Example project
A runnable, minimal example lives in the examples repo under
sdks/rust.
License
MIT