# 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"
name = "liteparse"
version = "2.0.7"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Fast, lightweight PDF and document parsing with spatial text extraction"
readme = "README.md"
license = "Apache-2.0"
repository = "https://github.com/run-llama/liteparse"
resolver = "2"

[features]
default = ["tesseract"]
tesseract = ["dep:tesseract-rs"]

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

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

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

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

[dependencies.image]
version = "0.25"
features = ["png"]
default-features = false

[dependencies.infer]
version = "0.19.0"

[dependencies.ordered-float]
version = "5.3.0"

[dependencies.pdfium]
version = "1.0.1"
package = "liteparse-pdfium"

[dependencies.pdfium-sys]
version = "1.1.0"
package = "liteparse-pdfium-sys"

[dependencies.reqwest]
version = "0.13.3"
features = [
    "json",
    "form",
    "multipart",
    "rustls",
]
default-features = false

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

[dependencies.serde_json]
version = "1.0.149"

[dependencies.tempfile]
version = "3.27.0"

[dependencies.tesseract-rs]
version = "0.2"
features = ["build-tesseract"]
optional = true

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1.52.3"
features = [
    "rt",
    "macros",
    "sync",
    "time",
    "io-util",
]

[dependencies.url]
version = "2"

[dependencies.web-time]
version = "1.1.0"

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

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.tokio]
version = "1.52.3"
features = [
    "rt-multi-thread",
    "fs",
    "process",
]
