[package]
edition = "2024"
rust-version = "1.85"
name = "docling_rs"
version = "0.1.2"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Rust SDK for Docling Serve that makes document conversion simple, reliable, and production-ready in Rust"
documentation = "https://docs.rs/docling_rs"
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"
[features]
blocking = []
default = ["blocking"]
[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 = "convert_url_blocking"
path = "examples/convert_url_blocking.rs"
required-features = ["blocking"]
[[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"