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 asdefaultbut 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 nativeExcelDateTimetypes.Enables chrono
- jiff
-
jiff: Adds support for Jiff dates/times in addition to the nativeExcelDateTimetypes.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 thessfmtcrate.Enables ssfmt
- polars
-
polars: Adds support for mapping betweenPolarsErrorandrust_xlsxwriter::XlsxErrorto make code that handles both types of errors easier to write. See alsopolars_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 alsowasm-xlsxwriter. - rust_decimal
-
rust_decimal: Adds support for writing therust_decimalDecimaltype withWorksheet::write(), provided it can be represented by f64.Enables rust_decimal
- zmij
-
zmij: Adds a dependency onzmij. This speeds up writing numeric worksheet cells by about 10%.Enables zmij
- ryu
-
ryu: Adds a dependency onryu. This speeds up writing numeric worksheet cells by about 7%. This is deprecated in favor ofzmijwhich 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.