xlsx-rs2 0.1.0

Rust 版本的 Excel .xlsx 读写库,基于 ooxml-core,对标 python-openpyxl
Documentation
# xlsx-rs

> Rust 版本的 Excel `.xlsx` 读写库,基于 [`ooxml-core`]https://crates.io/crates/ooxml-core 公共基座,对标 [python-openpyxl]https://openpyxl.readthedocs.io/
## 定位

- **完整读写**:支持创建、读取、修改 `.xlsx` 文件(区别于 `calamine` 只读、`rust_xlsxwriter` 只写)。
- **Round-trip 保真**:读取后再保存,不丢失原有样式/公式/结构。
- **基于 ooxml-core**:复用 OPC 打包层 + DrawingML 公共类型系统。
- **零 unsafe**:纯 Rust 实现。

## 快速开始

```rust
use xlsx_rs::{Workbook, Worksheet, Cell, CellValue};

let mut wb = Workbook::new();
let sheet = wb.get_sheet_mut(0).unwrap();
sheet.set_cell("A1", CellValue::Number(123.0));
sheet.set_cell("B1", CellValue::String("Hello".to_string()));
wb.save("hello.xlsx").unwrap();
```

## 状态

- v0.1.0:Workbook + Worksheet + Cell + SharedStrings 基础读写
- 路线图:样式系统 / 公式 / 图表 / Table / PivotTable

## License

MIT