[package]
edition = "2024"
name = "trimdown"
version = "0.1.2"
authors = ["Ying Kit WONG"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "File compression CLI tool for PowerPoint, PDF, Video, and Word documents"
homepage = "https://github.com/yingkitw/trimdown-rs"
documentation = "https://docs.rs/trimdown"
readme = "README.md"
keywords = [
"compression",
"powerpoint",
"pdf",
"video",
"cli",
]
categories = [
"command-line-utilities",
"multimedia",
]
license = "Apache-2.0"
repository = "https://github.com/yingkitw/trimdown-rs"
[lib]
name = "trimdown"
path = "src/lib.rs"
[[bin]]
name = "trimdown"
path = "src/main.rs"
[[test]]
name = "compression_helpers_test"
path = "tests/compression_helpers_test.rs"
[[test]]
name = "compression_test"
path = "tests/compression_test.rs"
[[test]]
name = "config_test"
path = "tests/config_test.rs"
[[test]]
name = "error_handling_test"
path = "tests/error_handling_test.rs"
[[test]]
name = "integration_test"
path = "tests/integration_test.rs"
[[test]]
name = "utils_test"
path = "tests/utils_test.rs"
[[bench]]
name = "compression_bench"
path = "benches/compression_bench.rs"
harness = false
[dependencies.anyhow]
version = "1.0"
[dependencies.clap]
version = "4.4"
features = ["derive"]
[dependencies.colored]
version = "3.1"
[dependencies.console]
version = "0.15"
[dependencies.dirs]
version = "6.0"
[dependencies.env_logger]
version = "0.11"
[dependencies.flate2]
version = "1.0"
[dependencies.generic-array]
version = "0.14"
[dependencies.gif]
version = "0.14"
[dependencies.image]
version = "0.25"
features = [
"jpeg",
"png",
"gif",
"webp",
"avif",
]
default-features = false
[dependencies.indicatif]
version = "0.17"
[dependencies.log]
version = "0.4"
[dependencies.lopdf]
version = "0.39"
[dependencies.num_cpus]
version = "1.16"
[dependencies.serde]
version = "1.0"
features = ["derive"]
[dependencies.serde_json]
version = "1.0"
[dependencies.tempfile]
version = "3.8"
[dependencies.thiserror]
version = "2.0"
[dependencies.tokio]
version = "1.0"
features = [
"rt-multi-thread",
"macros",
"net",
"fs",
"io-util",
"time",
"sync",
]
default-features = false
[dependencies.walkdir]
version = "2.4"
[dependencies.zip]
version = "0.6"
[dev-dependencies.criterion]
version = "0.5"
features = ["html_reports"]
[profile.release]
opt-level = "z"
lto = true
codegen-units = 1
debug = 0
panic = "abort"
strip = true