| 1 |
[package] |
| 2 |
name = "tiff" |
| 3 |
version = "0.10.3" |
| 4 |
edition = "2021" |
| 5 |
resolver = "2" |
| 6 |
|
| 7 |
# note: when changed, also update test runner in `.github/workflows/rust.yml` |
| 8 |
rust-version = "1.74.0" |
| 9 |
|
| 10 |
license = "MIT" |
| 11 |
description = "TIFF decoding and encoding library in pure Rust" |
| 12 |
authors = ["The image-rs Developers"] |
| 13 |
|
| 14 |
repository = "https://github.com/image-rs/image-tiff" |
| 15 |
categories = ["multimedia::images", "multimedia::encoding"] |
| 16 |
|
| 17 |
exclude = ["tests/images/*", "tests/fuzz_images/*"] |
| 18 |
|
| 19 |
[dependencies] |
| 20 |
half = { version = "2.4.1" } |
| 21 |
quick-error = "2.0.1" |
| 22 |
|
| 23 |
# Rename to avoid confusion with the feature name. |
| 24 |
fax34 = { package = "fax", version = "0.2.6", optional = true } |
| 25 |
flate2 = { version = "1.0.20", optional = true } |
| 26 |
weezl = { version = "0.1.10", optional = true } |
| 27 |
zstd = { version = "0.13", optional = true } |
| 28 |
zune-jpeg = { version = "0.4.17", optional = true } |
| 29 |
|
| 30 |
[dev-dependencies] |
| 31 |
criterion = "0.3.1" |
| 32 |
# We may already depend on this via flate2 |
| 33 |
crc32fast = "1.5" |
| 34 |
|
| 35 |
[features] |
| 36 |
default = ["deflate", "fax", "jpeg", "lzw"] |
| 37 |
|
| 38 |
# Compression algorithms |
| 39 |
deflate = ["dep:flate2"] |
| 40 |
fax = ["dep:fax34"] |
| 41 |
jpeg = ["dep:zune-jpeg"] |
| 42 |
lzw = ["dep:weezl"] |
| 43 |
zstd = ["dep:zstd"] |
| 44 |
|
| 45 |
[[bench]] |
| 46 |
name = "lzw" |
| 47 |
harness = false |