# 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.85"
name = "docling_rs"
version = "0.1.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "An unofficial, typed, async-first Rust SDK for Docling Serve"
readme = "README.md"
keywords = [
    "docling",
    "document-conversion",
    "pdf",
    "ocr",
    "sdk",
]
categories = [
    "api-bindings",
    "web-programming::http-client",
]
license = "MIT"
repository = "https://github.com/mohammedsafvan/docling_rs"

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.reqwest]
version = "0.13.2"
features = [
    "json",
    "multipart",
]

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

[dependencies.serde_json]
version = "1.0.149"

[dependencies.thiserror]
version = "2.0.18"

[dependencies.tokio]
version = "1.49.0"
features = [
    "macros",
    "rt-multi-thread",
    "fs",
]

[dev-dependencies.mockito]
version = "1.7"

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