rightkit-pdf 0.3.0

Product-neutral PDF engine: inspect, compose (source-text replace / add text / OCR correction), font subsetting, staged atomic save, plus optional page merge/select and text extraction
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.98.0"
name = "rightkit-pdf"
version = "0.3.0"
build = false
include = [
    "src/**",
    "assets/**",
    "tests/**",
    "Cargo.toml",
    "README.md",
    "CHANGELOG.md",
    "LICENSE-MIT",
    "LICENSE-APACHE",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Product-neutral PDF engine: inspect, compose (source-text replace / add text / OCR correction), font subsetting, staged atomic save, plus optional page merge/select and text extraction"
readme = "README.md"
license = "MIT OR Apache-2.0"
repository = "https://github.com/Orthic-Labs/rightkit"

[features]
default = [
    "merge",
    "edit",
    "fonts",
]
edit = [
    "fonts",
    "dep:getrandom",
    "dep:rightkit-fs",
]
extract = ["dep:pdf-extract"]
fonts = [
    "dep:fontdb",
    "dep:ttf-parser",
    "dep:subsetter",
    "dep:wuff",
]
merge = []

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

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

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

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

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

[dependencies.fontdb]
version = "0.24.0"
optional = true

[dependencies.getrandom]
version = "0.4.3"
optional = true

[dependencies.lopdf]
version = "0.44.0"
features = ["rayon"]
default-features = false

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

[dependencies.rightkit-fs]
version = "0.4.0"
features = ["fs"]
optional = true
default-features = false

[dependencies.serde]
version = "1.0.228"
features = ["derive"]

[dependencies.sha2]
version = "0.11.0"

[dependencies.subsetter]
version = "0.2.6"
optional = true

[dependencies.thiserror]
version = "2.0.20"

[dependencies.ttf-parser]
version = "0.25.1"
optional = true

[dependencies.wuff]
version = "0.2.8"
optional = true

[dev-dependencies.image]
version = "0.25"
features = ["png"]
default-features = false

[dev-dependencies.rightkit-fs]
version = "0.4.0"
features = [
    "fs",
    "testing",
]
default-features = false

[dev-dependencies.serde_json]
version = "1.0.150"

[target."cfg(windows)".dependencies.windows-sys]
version = "0.61.2"
features = [
    "Win32_Foundation",
    "Win32_Storage_FileSystem",
]