compress-pdf 0.1.0

Command-line PDF compressor: image recompression, font subsetting, and structural cleanup with presets
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.92"
name = "compress-pdf"
version = "0.1.0"
build = false
exclude = [
    ".github/",
    ".cargo/",
    ".kissconfig",
    "evals.toml",
    "evals-expectations.toml",
    "examples/",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Command-line PDF compressor: image recompression, font subsetting, and structural cleanup with presets"
readme = "README.md"
keywords = [
    "pdf",
    "compression",
    "cli",
    "images",
    "fonts",
]
categories = [
    "command-line-utilities",
    "compression",
    "multimedia::images",
]
license = "MIT"
repository = "https://github.com/aterenin/compress-pdf"

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

[[bin]]
name = "compress-pdf"
path = "src/main.rs"

[[test]]
name = "evals"
path = "tests/evals.rs"
harness = false

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

[dependencies.anyhow]
version = "1.0"

[dependencies.clap]
version = "4.6"
features = ["derive"]

[dependencies.fast_image_resize]
version = "6"

[dependencies.fax]
version = "0.3"

[dependencies.flate2]
version = "1.1"

[dependencies.hayro]
version = "0.7"
features = [
    "embed-fonts",
    "embed-cmaps",
]

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

[dependencies.hayro-jbig2]
version = "0.3"

[dependencies.hayro-jpeg2000]
version = "0.3"

[dependencies.hayro-syntax]
version = "0.7"

[dependencies.hb-subset]
version = "0.3"
features = ["bundled"]

[dependencies.jbig2enc-rust]
version = "0.5"

[dependencies.lopdf]
version = "0.45"

[dependencies.moxcms]
version = "0.9"

[dependencies.mozjpeg]
version = "0.10"

[dependencies.read-fonts]
version = "0.44"

[dependencies.tracing]
version = "0.1"

[dependencies.tracing-subscriber]
version = "0.3"
features = ["env-filter"]

[dependencies.zune-core]
version = "0.5"

[dependencies.zune-jpeg]
version = "0.5"

[dev-dependencies.hayro-font]
version = "0.4"

[dev-dependencies.libtest-mimic]
version = "0.8"

[dev-dependencies.serde]
version = "1.0"
features = ["derive"]

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

[dev-dependencies.toml]
version = "1.1"

[dev-dependencies.ureq]
version = "3.4"

[dev-dependencies.walkdir]
version = "2.5"

[profile.release]
lto = "thin"
codegen-units = 1
strip = true