[package]
edition = "2024"
rust-version = "1.89"
name = "resopt-cli"
version = "0.5.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Plan, verify, and apply resource optimizations for Apple projects."
documentation = "https://docs.rs/resopt-cli"
readme = "README.md"
keywords = [
"xcode",
"xcassets",
"png",
"optimization",
"cli",
]
categories = [
"command-line-utilities",
"multimedia::images",
]
license = "MIT"
repository = "https://github.com/wenext-limited/resopt"
resolver = "2"
[features]
default = ["native"]
native = [
"dep:ignore",
"dep:regex",
"dep:maud",
"dep:tiny_http",
"dep:getrandom",
"dep:clap",
"dep:tempfile",
"dep:toml",
"dep:walkdir",
"dep:xcassets",
"dep:rayon",
"dep:objc2",
"dep:objc2-core-foundation",
"dep:objc2-core-graphics",
"dep:objc2-image-io",
"oxipng/parallel",
]
[lib]
name = "resopt"
path = "src/lib.rs"
[[bin]]
name = "resopt"
path = "src/main.rs"
required-features = ["native"]
[[test]]
name = "analysis"
path = "tests/analysis.rs"
[[test]]
name = "ignore"
path = "tests/ignore.rs"
[[test]]
name = "report"
path = "tests/report.rs"
[[test]]
name = "server"
path = "tests/server.rs"
[[test]]
name = "workflow"
path = "tests/workflow.rs"
[dependencies.anyhow]
version = "1"
[dependencies.clap]
version = "4.6"
features = ["derive"]
optional = true
[dependencies.fast-ssim2]
version = "0.8.2"
[dependencies.getrandom]
version = "0.4"
optional = true
[dependencies.ignore]
version = "0.4.33"
optional = true
[dependencies.maud]
version = "0.27"
optional = true
[dependencies.oxipng]
version = "=10.2.1"
default-features = false
[dependencies.png]
version = "0.18"
[dependencies.rayon]
version = "1"
optional = true
[dependencies.regex]
version = "1"
optional = true
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
[dependencies.sha2]
version = "0.10"
[dependencies.tempfile]
version = "3"
optional = true
[dependencies.tiny_http]
version = "0.12"
optional = true
[dependencies.toml]
version = "0.8"
optional = true
[dependencies.walkdir]
version = "2"
optional = true
[dependencies.xcassets]
version = "0.2"
optional = true
[dev-dependencies.crc32fast]
version = "1"
[target.'cfg(target_arch = "wasm32")'.dependencies.oxipng]
version = "=10.2.1"
features = ["freestanding"]
default-features = false
[target.'cfg(target_os = "macos")'.dependencies.objc2]
version = "0.6"
optional = true
[target.'cfg(target_os = "macos")'.dependencies.objc2-core-foundation]
version = "0.3.2"
optional = true
[target.'cfg(target_os = "macos")'.dependencies.objc2-core-graphics]
version = "0.3.2"
optional = true
[target.'cfg(target_os = "macos")'.dependencies.objc2-image-io]
version = "0.3.2"
optional = true