# 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.12.0"
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 ultra-low memory (2.7 MB for any size)"
readme = "README.md"
keywords = [
    "excel",
    "xlsx",
    "streaming",
    "fast",
    "memory-efficient",
]
categories = [
    "parsing",
    "encoding",
]
license = "MIT"
repository = "https://github.com/KSD-CO/excelstream"

[features]
cloud-azure = []
cloud-gcs = []
cloud-http = [
    "dep:axum",
    "dep:tokio",
    "dep:tempfile",
]
cloud-s3 = [
    "dep:aws-config",
    "dep:aws-sdk-s3",
    "dep:tokio",
    "dep:tempfile",
]
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 = "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 = "csv_to_excel"
path = "examples/csv_to_excel.rs"

[[example]]
name = "http_memory_test"
path = "examples/http_memory_test.rs"
required-features = ["cloud-http"]

[[example]]
name = "http_streaming"
path = "examples/http_streaming.rs"
required-features = ["cloud-http"]

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

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

[[example]]
name = "memory_benchmark_read"
path = "examples/memory_benchmark_read.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 = "s3_streaming"
path = "examples/s3_streaming.rs"

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

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

[[example]]
name = "worksheet_protection"
path = "examples/worksheet_protection.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.aws-config]
version = "1.0"
optional = true

[dependencies.aws-sdk-s3]
version = "1.0"
optional = true

[dependencies.axum]
version = "0.7"
optional = true

[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.postgres]
version = "0.19"
features = ["with-chrono-0_4"]
optional = true

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

[dependencies.s-zip]
version = "0.3.1"

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

[dependencies.tempfile]
version = "3.8"
optional = true

[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

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

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