xlsxwriter-rs
Rust binding of libxlsxwriter
Supported Features
- 100% compatible Excel XLSX files.
- Full Excel formatting.
- Merged cells.
- Autofilters.
- Data validation and drop down lists.
- Worksheet PNG/JPEG images.
Coming soon
- Charts.
Example

let workbook = new;
let format1 = workbook.add_format.set_font_color;
let format2 = workbook
.add_format
.set_font_color
.set_underline;
let format3 = workbook
.add_format
.set_font_color
.set_align
.set_align;
let mut sheet1 = workbook.add_worksheet?;
sheet1.write_string?;
sheet1.write_number?;
sheet1.write_formula_num?;
sheet1.write_url?;
sheet1.merge_range?;
sheet1.set_selection;
sheet1.set_tab_color;
workbook.close?;
Run Example with Cargo
You can explore this example locally following the steps below:
- clone or fork this repository
git submodule update --init --recursive- The above command downloads the required C library so we can compile
cargo run --example hello_spreadsheet
You should then see the example in target/simple1.xlsx. Enjoy!