[package]
name = "spreadsheet-ods"
version = "1.0.2"
authors = ["thomasscharler <thscharler@gmail.com>"]
edition = "2021"
description = "Read and write ODS files"
license = "MIT/Apache-2.0"
repository = "https://github.com/thscharler/spreadsheet-ods"
readme = "README.md"
keywords = ["ODS", "spreadsheet", "OpenOffice", "LibreOffice"]
categories = ["parser-implementations"]
exclude = [".idea/*", ".gitignore"]

[features]
default = ["rust_decimal", "all_locales"]
# Add conversions from rust_decimal.
rust_decimal = ["dep:rust_decimal", "dep:rust_decimal_macros"]
# Check the xml output for wellformedness.
check_xml = []

all_locales = ["locale_cs_CZ", "locale_de_AT", "locale_en_US"]
locale_cs_CZ = []
locale_de_AT = []
locale_en_US = []

# Debug: dump all xml
dump_xml = []
# Debug: dump unused tags/attributes
dump_unused = []

[dependencies]
rust_decimal = { version = "1.36", optional = true }
rust_decimal_macros = { version = "1.36", optional = true }
color-rs2 = { version = "0.9.0" }
string_cache = "0.9"
nom = "7.1"
nom_locate = "4.2"
icu_locale_core = "2.0"
lazy_static = "1.5"
kparse = "3.0"
base64 = "0.22"
quick-xml = { version = "0.38", features = ["encoding"] }
zip = { version = "6.0.0", default-features = false, features = ["deflate", "time"] }
chrono = { version = "0.4", default-features = false, features = ["clock", "alloc"] }
get-size2 = { version = "0.7", features = ["derive"] }

[dev-dependencies]
criterion = { version = "0.7", features = ["html_reports"] }

[[bench]]
name = "bench"
harness = false
