1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
[]
= "docling-cli"
= "Command-line interface for docling.rs (the `docling-rs` binary; a Rust port of docling)."
= true
= true
= true
= true
= true
= true
= true
= ["command-line-utilities", "text-processing"]
= true
[[]]
= "docling-rs"
= "src/main.rs"
[]
# Tokenization-aware chunking is on by default so `--to chunks` emits the
# hybrid records out of the box once download_dependencies.sh has fetched
# .models/chunk/tokenizer.json (the hierarchical records need no tokenizer and
# are always available). `--no-default-features` drops the tokenizer dep.
= ["chunking"]
# HEIC/HEIF image input (#211) — links the system libheif.
= ["docling/heif"]
# Pass through to the library's optional headless-browser HTML pre-render, so
# `cargo run -p docling-cli --features web-browser -- --use-web-browser …`
# activates it. Off by default (keeps the default binary browser-dependency-free).
= ["docling/web-browser"]
# Tokenization-aware chunking: enables the hybrid chunk records in `--to chunks`
# (the hierarchical ones need no tokenizer and are always available).
= ["docling/chunking"]
# `docling-rs serve` subcommand: the HTTP conversion API (pulls the async
# stack — tokio/axum — so it is off by default; the standalone `docling-serve`
# binary is always available from its own crate).
= ["dep:docling-serve", "dep:tokio"]
# GPU execution providers for the PDF/image ML pipeline (#74) — pass-through
# to docling → docling-pdf. Build e.g. `--features cuda`; such a build defaults
# to `DOCLING_RS_EP=auto` (use the GPU when one is usable, fall back to CPU),
# and the env var pins a specific provider — `DOCLING_RS_EP=cpu` opts back out.
# `docling-rs --version` reports which of these the binary carries.
= ["docling/cuda"]
= ["docling/tensorrt"]
= ["docling/directml"]
= ["docling/coreml"]
# CPU-class accelerator for machines without a usable GPU provider (#324).
# Requires linking a self-built ONNX Runtime (`ORT_LIB_LOCATION`, built with
# `--use_xnnpack`) — pyke ships no prebuilt runtime with this EP.
= ["docling/xnnpack"]
[]
= { = "../docling", = "1.37.2" }
= "0.3"
= { = "../docling-serve", = "1.37.2", = true, = false }
= "1"
= { = "1", = ["rt-multi-thread"], = true }