# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2021"
name = "excelstream"
version = "0.6.3-alpha"
authors = ["Ton That Vu <ttvuhm@gmail.com>"]
build = false
exclude = [
    "*.xlsx",
    "*.xls",
    "examples/*.xlsx",
    "examples/*.xls",
    "tests/data/*.xlsx",
    "tests/data/*.xls",
    "benches/results/",
    "memory_test_*.xlsx",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "High-performance streaming Excel library - Read/write large XLSX files with memory-efficient streaming"
readme = "README.md"
keywords = [
    "excel",
    "xlsx",
    "streaming",
    "fast",
    "memory-efficient",
]
categories = [
    "parsing",
    "encoding",
]
license = "MIT"
repository = "https://github.com/KSD-CO/excelstream"

[features]
default = []
parallel = ["dep:rayon"]
postgres = ["dep:postgres"]
postgres-async = [
    "dep:tokio-postgres",
    "dep:deadpool-postgres",
    "dep:tokio",
]
serde = ["dep:serde"]

[lib]
name = "excelstream"
path = "src/lib.rs"

[[example]]
name = "auto_memory_config"
path = "examples/auto_memory_config.rs"

[[example]]
name = "basic_read"
path = "examples/basic_read.rs"

[[example]]
name = "basic_write"
path = "examples/basic_write.rs"

[[example]]
name = "cell_formatting"
path = "examples/cell_formatting.rs"

[[example]]
name = "column_width_row_height"
path = "examples/column_width_row_height.rs"

[[example]]
name = "compression_level_config"
path = "examples/compression_level_config.rs"

[[example]]
name = "csv_to_excel"
path = "examples/csv_to_excel.rs"

[[example]]
name = "excel_writer_compression"
path = "examples/excel_writer_compression.rs"

[[example]]
name = "large_dataset_multi_sheet"
path = "examples/large_dataset_multi_sheet.rs"

[[example]]
name = "memory_constrained_write"
path = "examples/memory_constrained_write.rs"

[[example]]
name = "multi_sheet"
path = "examples/multi_sheet.rs"

[[example]]
name = "postgres_streaming"
path = "examples/postgres_streaming.rs"
required-features = ["postgres"]

[[example]]
name = "postgres_to_excel_advanced"
path = "examples/postgres_to_excel_advanced.rs"
required-features = ["postgres-async"]

[[example]]
name = "streaming_read"
path = "examples/streaming_read.rs"

[[example]]
name = "streaming_write"
path = "examples/streaming_write.rs"

[[example]]
name = "verify_postgres_export"
path = "examples/verify_postgres_export.rs"

[[example]]
name = "windows_5sheets_test"
path = "examples/windows_5sheets_test.rs"

[[example]]
name = "windows_compat_test"
path = "examples/windows_compat_test.rs"

[[example]]
name = "windows_multisheet_test"
path = "examples/windows_multisheet_test.rs"

[[example]]
name = "writers_comparison"
path = "examples/writers_comparison.rs"

[[test]]
name = "integration_test"
path = "tests/integration_test.rs"

[[bench]]
name = "streaming_benchmark"
path = "benches/streaming_benchmark.rs"
harness = false

[dependencies.calamine]
version = "0.32"

[dependencies.chrono]
version = "0.4"
features = ["clock"]

[dependencies.deadpool-postgres]
version = "0.14"
optional = true

[dependencies.indexmap]
version = "2"

[dependencies.itoa]
version = "1.0"

[dependencies.lru]
version = "0.12"

[dependencies.postgres]
version = "0.19"
features = ["with-chrono-0_4"]
optional = true

[dependencies.rayon]
version = "1.8"
optional = true

[dependencies.serde]
version = "1.0"
features = ["derive"]
optional = true

[dependencies.sled]
version = "0.34"

[dependencies.tempfile]
version = "3.8"

[dependencies.thiserror]
version = "2.0"

[dependencies.tokio]
version = "1"
features = ["full"]
optional = true

[dependencies.tokio-postgres]
version = "0.7"
features = ["with-chrono-0_4"]
optional = true

[dependencies.zip]
version = "4.1"

[dev-dependencies.criterion]
version = "0.5"

[dev-dependencies.tempfile]
version = "3.8"
