Cargo Features

rust_xlsxwriter has no features set by default.

[dependencies]
rust_xlsxwriter = { version = "0.95.0", features = ["zlib", "chrono", "jiff", "constant_memory", "enhanced_autofit", "polars", "serde", "wasm", "rust_decimal", "zmij", "ryu", "test-resave"] }
default

default: Includes all the standard functionality.

zlib

zlib: Adds a dependency on zlib and a C compiler. This includes the same features as default but is 1.5x faster for large files.

Enables deflate-flate2-zlib of zip ^7.2

Default/non-optional dependencies.

chrono

chrono: Adds support for Chrono dates/times in addition to the native ExcelDateTime types.

Enables chrono

jiff

jiff: Adds support for Jiff dates/times in addition to the native ExcelDateTime types.

Enables jiff

constant_memory

Enable "constant memory" when writing worksheet data. This keeps memory usage to a minimum when writing large files.

Enables tempfile

enhanced_autofit

enhanced_autofit: This features provides autofit support for formatted numbers via the ssfmt crate.

Enables ssfmt

polars

polars: Adds support for mapping between PolarsError and rust_xlsxwriter::XlsxError to make code that handles both types of errors easier to write. See also polars_write_excel.

Enables polars ^0.53

serde

serde: Adds support for Serde serialization.

Enables rust_xlsxwriter_derive and serde

Affects rust_xlsxwriter::serializer, utility::serialize_datetime_to_excel, utility::serialize_option_datetime_to_excel, utility::serialize_chrono_naive_to_excel, utility::serialize_chrono_option_naive_to_excel

wasm = js-sys, wasm-bindgen

wasm: Enables wasm/JavaScript compilation. See also wasm-xlsxwriter.

rust_decimal

rust_decimal: Adds support for writing the rust_decimal Decimal type with Worksheet::write(), provided it can be represented by f64.

Enables rust_decimal

zmij

zmij: Adds a dependency on zmij. This speeds up writing numeric worksheet cells by about 10%.

Enables zmij

ryu

ryu: Adds a dependency on ryu. This speeds up writing numeric worksheet cells by about 7%. This is deprecated in favor of zmij which is faster and by the same author.

Enables ryu

Optional dependencies.

test-resave

test-resave: Developer-only testing feature.

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

js-sys wasm?
wasm-bindgen wasm?