graphrt-doc 0.3.0

Document extraction node (PDF, Office, spreadsheets, HTML, e-mail, subtitles) for the graphrt workflow runtime.
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 = "2024"
rust-version = "1.85"
name = "graphrt-doc"
version = "0.3.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Document extraction node (PDF, Office, spreadsheets, HTML, e-mail, subtitles) for the graphrt workflow runtime."
homepage = "https://github.com/BimaPangestu28/graphrt"
documentation = "https://docs.rs/graphrt-doc"
readme = "README.md"
keywords = [
    "pdf",
    "docx",
    "xlsx",
    "extraction",
    "rag",
]
categories = [
    "text-processing",
    "parsing",
]
license = "Apache-2.0"
repository = "https://github.com/BimaPangestu28/graphrt"

[features]
default = [
    "pdf",
    "office",
    "spreadsheet",
    "epub",
    "email",
    "tokio",
]
email = ["dep:mail-parser"]
epub = ["zip-formats"]
office = ["zip-formats"]
pdf = [
    "dep:pdf-extract",
    "dep:flate2",
]
spreadsheet = [
    "dep:calamine",
    "zip-formats",
]
tokio = [
    "dep:tokio",
    "tokio/rt",
]
xls = ["spreadsheet"]
zip-formats = [
    "dep:zip",
    "dep:quick-xml",
]

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

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

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

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

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

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

[dependencies.calamine]
version = "0.38"
optional = true
default-features = false

[dependencies.encoding_rs]
version = "0.8"

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

[dependencies.futures]
version = "0.3"
features = [
    "std",
    "async-await",
]
default-features = false

[dependencies.graphrt-core]
version = "0.3.0"
default-features = false

[dependencies.mail-parser]
version = "0.11"
optional = true
default-features = false

[dependencies.pdf-extract]
version = "0.12"
optional = true

[dependencies.quick-xml]
version = "0.42"
optional = true

[dependencies.serde]
version = "1"
features = [
    "derive",
    "rc",
]

[dependencies.serde_json]
version = "1"
features = [
    "preserve_order",
    "raw_value",
]

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1"
optional = true
default-features = false

[dependencies.zip]
version = "9"
features = ["deflate"]
optional = true
default-features = false

[dev-dependencies.flate2]
version = "1"

[dev-dependencies.futures]
version = "0.3"
features = [
    "std",
    "async-await",
    "executor",
]
default-features = false

[dev-dependencies.tokio]
version = "1"
features = [
    "rt",
    "rt-multi-thread",
    "macros",
]
default-features = false

[dev-dependencies.zip]
version = "9"
features = ["deflate"]
default-features = false

[lints.clippy]
dbg_macro = "deny"
expect_used = "deny"
indexing_slicing = "warn"
panic = "deny"
print_stdout = "warn"
todo = "deny"
unimplemented = "deny"
unwrap_used = "deny"

[lints.rust]
missing_debug_implementations = "warn"
unsafe_code = "forbid"

[lints.rust.rust_2018_idioms]
level = "warn"
priority = -1