docling-pdf 0.52.0

PDF/image backend for docling.rs: pdfium text extraction + ONNX layout/table/OCR pipeline.
Documentation
# 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"
rust-version = "1.88"
name = "docling-pdf"
version = "0.52.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "PDF/image backend for docling.rs: pdfium text extraction + ONNX layout/table/OCR pipeline."
homepage = "https://github.com/docling-project/docling.rs"
readme = "README.md"
keywords = [
    "docling",
    "document",
    "pdf",
    "markdown",
    "converter",
]
categories = [
    "text-processing",
    "parser-implementations",
]
license = "MIT"
repository = "https://github.com/docling-project/docling.rs"

[features]
coreml = [
    "ml",
    "ort/coreml",
    "ort/copy-dylibs",
]
cuda = [
    "ml",
    "ort/cuda",
    "ort/copy-dylibs",
]
default = ["ml"]
directml = [
    "ml",
    "ort/directml",
    "ort/copy-dylibs",
]
ml = [
    "ocr-prep",
    "dep:pdfium-render",
    "dep:ort",
    "dep:image",
    "dep:fast_image_resize",
    "dep:tokenizers",
    "dep:flate2",
    "dep:tar",
    "dep:regex",
]
ocr-prep = ["dep:image"]
tensorrt = [
    "ml",
    "ort/tensorrt",
    "ort/copy-dylibs",
]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.docling-core]
version = "0.52.0"

[dependencies.fast_image_resize]
version = "5.1.4"
optional = true

[dependencies.flate2]
version = "1"
optional = true

[dependencies.image]
version = "0.25"
optional = true

[dependencies.lopdf]
version = "0.44"

[dependencies.ort]
version = "2.0.0-rc.12"
features = [
    "std",
    "download-binaries",
    "tls-rustls",
]
optional = true
default-features = false

[dependencies.pdfium-render]
version = "0.8"
optional = true

[dependencies.regex]
version = "1.11"
optional = true

[dependencies.tar]
version = "0.4"
optional = true

[dependencies.tokenizers]
version = "0.20"
features = ["onig"]
optional = true
default-features = false

[dev-dependencies.lopdf]
version = "0.44"

[target.'cfg(target_arch = "wasm32")'.dependencies.lopdf]
version = "0.44"
features = ["wasm_js"]