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