exprim 0.4.1

A concurrent, memory-bounded PDF reader and renderer: parse, extract text, and rasterize pages on an immutable document snapshot
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.97"
name = "exprim"
version = "0.4.1"
build = "build.rs"
include = [
    "/src/**/*.rs",
    "/src/font/cmap_data/**",
    "/build.rs",
    "/fonts/*.otf",
    "/fonts/README.md",
    "/upstream/pdfium/LICENSE",
    "/upstream/pdfium/README.md",
    "/upstream/pdfium/core/**",
    "/README.md",
    "/CHANGELOG.md",
    "/LICENSE-MIT",
    "/THIRD-PARTY-NOTICES.md",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A concurrent, memory-bounded PDF reader and renderer: parse, extract text, and rasterize pages on an immutable document snapshot"
readme = "README.md"
keywords = [
    "pdf",
    "render",
    "rasterizer",
    "text-extraction",
    "document",
]
categories = [
    "graphics",
    "rendering",
    "parser-implementations",
    "text-processing",
]
license = "MIT"
repository = "https://github.com/liminalism/exprim"
resolver = "2"

[package.metadata.docs.rs]
features = ["print"]
targets = [
    "x86_64-unknown-linux-gnu",
    "x86_64-pc-windows-msvc",
]

[features]
default = []
print = ["dep:windows"]
profiling = []
test-support = []

[lib]
name = "exprim"
path = "src/lib.rs"
doctest = true

[dependencies.bitflags]
version = "2.9.3"

[dependencies.crossbeam-channel]
version = "0.5"

[dependencies.flate2]
version = "1.1.9"
features = ["zlib-rs"]

[dependencies.foldhash]
version = "0.2.0"

[dependencies.jbig2enc-rust]
version = "0.6.1"
features = ["decode"]
default-features = false

[dependencies.jp2lam]
version = "0.3.1"
default-features = false

[dependencies.jpeg-encoder]
version = "=0.7.1"
features = ["simd"]

[dependencies.memmap2]
version = "0.9"

[dependencies.png]
version = "0.18"

[dependencies.rayon]
version = "1.11.0"

[dependencies.skrifa]
version = "0.49.0"

[dependencies.thiserror]
version = "2.0.18"

[dev-dependencies.hayro-ccitt]
version = "0.3"

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

[target."cfg(windows)".dependencies.windows]
version = "0.62.2"
features = [
    "Win32_Foundation",
    "Win32_Graphics_Gdi",
    "Win32_Graphics_Printing",
    "Win32_Storage_Xps",
]
optional = true
default-features = false

[lints.clippy]
dbg_macro = "warn"
expect_used = "deny"
panic = "deny"
undocumented_unsafe_blocks = "warn"
unwrap_used = "deny"

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

[profile.debug-fast]
lto = false
codegen-units = 16
debug = 2
incremental = true
inherits = "release"
strip = false

[profile.dev]
codegen-units = 256
split-debuginfo = "packed"
incremental = true

[profile.profiling]
lto = false
codegen-units = 16
debug = 2
incremental = true
inherits = "release"
strip = false

[profile.release]
opt-level = 3
lto = "fat"
codegen-units = 1
debug = 0
panic = "unwind"
incremental = false
strip = "symbols"