| 1 | [package] |
| 2 | name = "gif" |
| 3 | license = "MIT/Apache-2.0" |
| 4 | version = "0.13.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 | |
| 14 | [lib] |
| 15 | bench = false |
| 16 | |
| 17 | [dependencies] |
| 18 | weezl = "0.1.8" |
| 19 | color_quant = { version = "1.1" , optional = true } |
| 20 | |
| 21 | [dev-dependencies] |
| 22 | glob = "0.3" |
| 23 | criterion = "0.5.1" |
| 24 | png = "0.17.10" |
| 25 | rayon = "1.8.0" # for parallel reencoding example |
| 26 | |
| 27 | [features] |
| 28 | default = ["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 |
| 31 | raii_no_panic = [] |
| 32 | color_quant = ["dep:color_quant" ] |
| 33 | # Reservation for a feature turning off std |
| 34 | std = [] |
| 35 | |
| 36 | [[bench]] |
| 37 | name = "decode" |
| 38 | harness = false |
| 39 | required-features = ["std" ] |
| 40 | |
| 41 | [[bench]] |
| 42 | name = "rgb_frame" |
| 43 | harness = false |
| 44 | required-features = ["std" , "color_quant" ] |
| 45 | |