[package]
edition = "2021"
rust-version = "1.85"
name = "tiny-webp"
version = "0.1.1"
build = false
include = [
"src/**",
"tests/**",
"examples/**",
"benches/**",
"fixtures/**",
"Cargo.toml",
"README.md",
"CHANGELOG.md",
"LICENSE-MIT",
"LICENSE-APACHE",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Lossy WebP encoder in Rust with a cwebp-shaped command line"
readme = "README.md"
keywords = [
"webp",
"encoder",
"image",
"vp8",
"lossy",
]
categories = [
"multimedia::encoding",
"multimedia::images",
"command-line-utilities",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/hey-jj/tiny-webp"
[features]
cli = [
"std",
"dep:lexopt",
"dep:png",
"dep:jpeg-decoder",
"dep:image-webp",
]
default = [
"std",
"cli",
]
std = []
[lib]
name = "tiny_webp"
path = "src/lib.rs"
[[bin]]
name = "tiny-webp"
path = "src/bin/tiny-webp.rs"
required-features = ["cli"]
[[example]]
name = "bench"
path = "examples/bench.rs"
required-features = ["cli"]
[[example]]
name = "digests"
path = "examples/digests.rs"
[[example]]
name = "fixtures"
path = "examples/fixtures.rs"
[[test]]
name = "cli"
path = "tests/cli.rs"
[[test]]
name = "color_conversion"
path = "tests/color_conversion.rs"
[[test]]
name = "digests"
path = "tests/digests.rs"
[[test]]
name = "entry_points"
path = "tests/entry_points.rs"
[[test]]
name = "errors"
path = "tests/errors.rs"
[[test]]
name = "fixture_generator"
path = "tests/fixture_generator.rs"
[[test]]
name = "forward_dct"
path = "tests/forward_dct.rs"
[[test]]
name = "options"
path = "tests/options.rs"
[[test]]
name = "quantizer_table"
path = "tests/quantizer_table.rs"
[[bench]]
name = "encode"
path = "benches/encode.rs"
harness = false
[dependencies.image-webp]
version = "0.2.4"
optional = true
[dependencies.jpeg-decoder]
version = "0.3"
features = ["platform_independent"]
optional = true
default-features = false
[dependencies.lexopt]
version = "0.3"
optional = true
[dependencies.png]
version = "0.18"
optional = true
[dev-dependencies.criterion]
version = "0.7"
[dev-dependencies.image-webp]
version = "0.2.4"
[dev-dependencies.sha2]
version = "0.10"
[profile.release]
lto = true