umya-spreadsheet

Crates.io

Description

umya-spreadsheet is a library written in pure Rust and read and write xlsx file.

Caution

This is BETA version. - It contains many bugs. - Often changes are not backward compatible.

Example

```rust extern crate umya_spreadsheet;

// reader let path = std::path::Path::new("C:/spreadtestdata/aaa.xlsx"); let mut book = umyaspreadsheet::reader::xlsx::read(path).unwrap(); // or // new file let mut book = umyaspreadsheet::new_file();

// change value let _ = book.getsheetmut(0).getcellmut("A1").set_value("TEST1");

// read value let a1value = book.getsheet(0).getcell("A1").unwrap().getvalue(); asserteq!("TEST1", a1value); // TEST1

// writer let path = std::path::Path::new("C:/spreadtestdata/bbb.xlsx"); let _ = umya_spreadsheet::writer::xlsx::write(&book, path); ```

License

MIT