[package]
edition = "2021"
rust-version = "1.88"
name = "mdkit"
version = "0.5.6"
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/mdkit-project/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/mdkit-project/mdkit"
[features]
calamine = ["dep:calamine"]
csv = ["dep:csv"]
default = [
"pdf",
"calamine",
"csv",
"html",
]
full = [
"pdf",
"pandoc",
"ocr-platform",
"ocr-onnx",
"calamine",
"csv",
"html",
]
html = ["dep:html2md"]
ocr-onnx = []
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"
[dependencies.calamine]
version = "0.34"
optional = true
[dependencies.csv]
version = "1"
optional = true
[dependencies.html2md]
version = "0.2"
optional = true
[dependencies.pdfium-render]
version = "0.9"
features = [
"thread_safe",
"pdfium_latest",
"image_latest",
]
optional = true
default-features = false
[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"