mdkit 0.7.3

Get markdown out of any document — Pandoc + pdfium + platform-native OCR, dispatched per format.
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 = "mdkit"
version = "0.7.3"
authors = ["mdkit contributors"]
build = false
exclude = [
    "/.github",
    "/tests/fixtures/large/*",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Get markdown out of any document — Pandoc + pdfium + platform-native OCR, dispatched per format."
homepage = "https://github.com/seryai/mdkit"
documentation = "https://docs.rs/mdkit"
readme = "README.md"
keywords = [
    "markdown",
    "pdf",
    "docx",
    "pandoc",
    "ocr",
]
categories = [
    "text-processing",
    "parser-implementations",
    "filesystem",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/seryai/mdkit"

[features]
calamine = ["dep:calamine"]
csv = ["dep:csv"]
default = [
    "pdf",
    "calamine",
    "csv",
    "html",
    "ipynb",
]
full = [
    "pdf",
    "pandoc",
    "ocr-platform",
    "ocr-onnx-download",
    "calamine",
    "csv",
    "html",
    "ipynb",
]
html = ["dep:html2md"]
ipynb = ["dep:serde_json"]
ocr-onnx = [
    "dep:oar-ocr",
    "dep:image",
]
ocr-onnx-download = [
    "ocr-onnx",
    "oar-ocr/download-binaries",
]
ocr-platform = [
    "dep:objc2",
    "dep:objc2-foundation",
    "dep:objc2-app-kit",
    "dep:objc2-core-graphics",
    "dep:objc2-vision",
    "dep:windows",
    "dep:windows-future",
]
pandoc = []
pdf = [
    "dep:pdfium-render",
    "dep:tempfile",
]

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

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

[dependencies.calamine]
version = "0.34"
optional = true

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

[dependencies.html2md]
version = "0.2"
optional = true

[dependencies.image]
version = "0.25"
features = [
    "png",
    "jpeg",
    "bmp",
    "gif",
    "tiff",
]
optional = true
default-features = false

[dependencies.oar-ocr]
version = "0.6"
optional = true
default-features = false

[dependencies.pdfium-render]
version = "0.9"
features = [
    "thread_safe",
    "pdfium_latest",
    "image_latest",
]
optional = true
default-features = false

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

[dependencies.tempfile]
version = "3"
optional = true

[dependencies.thiserror]
version = "2"

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

[target.'cfg(target_os = "macos")'.dependencies.objc2]
version = "0.6"
optional = true

[target.'cfg(target_os = "macos")'.dependencies.objc2-app-kit]
version = "0.3"
features = [
    "NSImage",
    "NSImageRep",
]
optional = true

[target.'cfg(target_os = "macos")'.dependencies.objc2-core-graphics]
version = "0.3"
optional = true

[target.'cfg(target_os = "macos")'.dependencies.objc2-foundation]
version = "0.3"
optional = true

[target.'cfg(target_os = "macos")'.dependencies.objc2-vision]
version = "0.3"
features = [
    "alloc",
    "VNRequest",
    "VNRequestHandler",
    "VNRecognizeTextRequest",
    "VNObservation",
    "objc2-core-graphics",
]
optional = true

[target.'cfg(target_os = "windows")'.dependencies.windows]
version = "0.62"
features = [
    "Storage",
    "Storage_Streams",
    "Graphics_Imaging",
    "Media_Ocr",
    "Globalization",
    "Foundation",
    "Win32_System_WinRT",
]
optional = true

[target.'cfg(target_os = "windows")'.dependencies.windows-future]
version = "0.3"
optional = true

[lints.clippy]
missing_errors_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"

[lints.clippy.all]
level = "warn"
priority = -1

[lints.clippy.pedantic]
level = "warn"
priority = -1

[lints.rust]
missing_docs = "warn"
unsafe_code = "deny"