| 1 |
[package] |
| 2 |
name = "gif" |
| 3 |
license = "MIT OR Apache-2.0" |
| 4 |
version = "0.14.1" |
| 5 |
description = "GIF de- and encoder" |
| 6 |
authors = ["The image-rs Developers"] |
| 7 |
readme = "README.md" |
| 8 |
homepage = "https://github.com/image-rs/image-gif" |
| 9 |
repository = "https://github.com/image-rs/image-gif" |
| 10 |
documentation = "https://docs.rs/gif" |
| 11 |
edition = "2021" |
| 12 |
include = ["src/**", "LICENSE-*", "README.md", "benches/*.rs"] |
| 13 |
rust-version = "1.62" |
| 14 |
|
| 15 |
[lib] |
| 16 |
bench = false |
| 17 |
|
| 18 |
[dependencies] |
| 19 |
weezl = "0.1.10" |
| 20 |
color_quant = { version = "1.1", optional = true } |
| 21 |
|
| 22 |
[dev-dependencies] |
| 23 |
glob = "0.3" |
| 24 |
criterion = "0.7.0" |
| 25 |
png = "0.18.0" |
| 26 |
rayon = "1.10.0" # for parallel reencoding example |
| 27 |
|
| 28 |
[features] |
| 29 |
default = ["raii_no_panic", "std", "color_quant"] |
| 30 |
# The `Encoder` finishes writing in `Drop`, and if the write fails, it either ignores the error (`raii_no_panic`) or panics. |
| 31 |
# Use `Encoder::into_inner` to avoid the issue entirely |
| 32 |
raii_no_panic = [] |
| 33 |
color_quant = ["dep:color_quant"] |
| 34 |
# Reservation for a feature turning off std |
| 35 |
std = [] |
| 36 |
|
| 37 |
[[bench]] |
| 38 |
name = "decode" |
| 39 |
harness = false |
| 40 |
required-features = ["std"] |
| 41 |
|
| 42 |
[[bench]] |
| 43 |
name = "rgb_frame" |
| 44 |
harness = false |
| 45 |
required-features = ["std", "color_quant"] |
| 46 |
|
| 47 |
[[example]] |
| 48 |
name = "check" |
| 49 |
required-features = ["std"] |
| 50 |
|
| 51 |
[[example]] |
| 52 |
name = "explode" |
| 53 |
required-features = ["std"] |
| 54 |
|
| 55 |
[[example]] |
| 56 |
name = "parallel" |
| 57 |
required-features = ["std"] |