mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-16 15:33:12 +00:00
* craft-gif: bounded frame decoding through the image crate (feature frames) * craft-webp: bounded frame decoding through the image crate (feature frames) Like craft-gif's: every frame composited, a still as one frame, canvas cap checked from the headers, stops at the frame or byte limit or at a damaged frame and says which, optional merging of identical frames.
24 lines
834 B
TOML
24 lines
834 B
TOML
[package]
|
|
name = "craft-webp"
|
|
description = "WebP container (RIFF) reader and writer: canvas, alpha and animation frames from the chunk headers, and the container around an encoded VP8 frame with alpha and metadata chunks."
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
rust-version.workspace = true
|
|
repository.workspace = true
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[features]
|
|
# Decoding every frame through the `image` crate's WebP decoder, with bounded memory.
|
|
frames = ["dep:image"]
|
|
|
|
[dependencies]
|
|
thiserror = { workspace = true }
|
|
image = { version = "0.25", default-features = false, features = ["webp"], optional = true }
|
|
|
|
[dev-dependencies]
|
|
# Decodes the files the writer makes and writes still test files; not a product dependency.
|
|
image = { version = "0.25", default-features = false, features = ["webp"] }
|