# 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 = "2024"
rust-version = "1.91"
name = "olga"
version = "0.1.2"
authors = ["Hugues Dtankouo <huguesdtankouo@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Four formats, one engine. PDF, DOCX, XLSX, HTML → Markdown and typed JSON. 15–40× faster than equivalent-quality OSS tools, with pipeline pre-flight and element-level provenance."
readme = "README.md"
keywords = [
    "pdf",
    "docx",
    "xlsx",
    "rag",
    "markdown",
]
categories = [
    "parser-implementations",
    "text-processing",
]
license = "Apache-2.0"
repository = "https://github.com/Hugues-DTANKOUO/olga"

[features]
_ooxml = [
    "dep:quick-xml",
    "dep:zip",
]
default = [
    "xlsx",
    "pdf",
    "docx",
    "html",
]
docx = ["_ooxml"]
html = [
    "dep:scraper",
    "dep:ego-tree",
]
pdf = ["dep:pdf_oxide"]
xlsx = [
    "dep:calamine",
    "_ooxml",
]

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

[[bin]]
name = "olga"
path = "src/main.rs"

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.calamine]
version = "0.34"
features = ["dates"]
optional = true

[dependencies.clap]
version = "4"
features = ["derive"]

[dependencies.ego-tree]
version = "0.11"
optional = true

[dependencies.log]
version = "0.4"

[dependencies.pdf_oxide]
version = "0.3.36"
optional = true

[dependencies.quick-xml]
version = "0.39"
optional = true

[dependencies.rstar]
version = "0.12"

[dependencies.scraper]
version = "0.26"
optional = true

[dependencies.serde]
version = "1"
features = ["derive"]

[dependencies.serde_json]
version = "1"

[dependencies.thiserror]
version = "2"

[dependencies.unicode-normalization]
version = "0.1"

[dependencies.zip]
version = "8"
features = ["deflate"]
optional = true
default-features = false

[dev-dependencies.assert_cmd]
version = "2"

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

[dev-dependencies.env_logger]
version = "0.11"

[dev-dependencies.predicates]
version = "3"

[dev-dependencies.proptest]
version = "1"
