mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-16 23:42:27 +00:00
The deep EXR corpus test read the five OpenEXR files in corpus/exr/ without a size bound or digest check, and a missing file failed with advice to run `cargo xtask corpus --exr`, which craft-libs does not have. - REAL_FILE_SHA256 pins the five files (OpenEXR commit 69b2604f). The test reads only those names, refuses a file that is missing, is not a regular file, is larger than 4 MiB or does not match its digest, and names the file and both digests. - The failure points at the crate README, which says where the files come from and how to fill corpus/exr/, either from OpenEXR or with PhotoCraft's fetcher at the commit CI uses. - Three tests that run without the corpus feature cover the pins, a changed byte, and missing, oversize and folder inputs.
52 lines
2.0 KiB
TOML
52 lines
2.0 KiB
TOML
[package]
|
|
name = "craft-image-codecs"
|
|
description = "Bounded, depth- and metadata-preserving codecs for flat raster image formats"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
rust-version.workspace = true
|
|
repository.workspace = true
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[features]
|
|
corpus = []
|
|
default = []
|
|
avif = ["image/avif", "dep:ravif", "dep:rav1e", "dep:avif-serialize"]
|
|
heif = ["dep:craft-heif"]
|
|
|
|
[dependencies]
|
|
thiserror = { workspace = true }
|
|
image = { version = "0.25", default-features = false, features = ["png", "jpeg", "tiff", "gif", "bmp", "tga", "ico", "qoi", "hdr"] }
|
|
png = "0.18"
|
|
tiff = { version = "0.11", default-features = false, features = ["deflate", "fax", "jpeg", "lzw"] }
|
|
exr = { version = "1.73", default-features = false }
|
|
half = "2"
|
|
serde_json = { workspace = true }
|
|
flate2 = { version = "1.1.10", default-features = false, features = ["zlib-rs", "runtime_detection"] }
|
|
image-webp = "0.2"
|
|
zune-jpeg = "0.5"
|
|
zune-core = "0.5"
|
|
jpeg-encoder = "0.6"
|
|
craft-jpeg = { workspace = true }
|
|
craft-metadata = { workspace = true }
|
|
zune-jpegxl = { version = "=0.5.2", default-features = false, features = ["std"] }
|
|
craft-heif = { workspace = true, optional = true }
|
|
ravif = { version = "0.13", default-features = false, optional = true }
|
|
rav1e = { version = "0.8", default-features = false, optional = true }
|
|
avif-serialize = { version = "0.8", optional = true }
|
|
hayro-jpeg2000 = { version = "=0.3.5", default-features = false, features = ["std", "simd"] }
|
|
|
|
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
|
|
rayon = { workspace = true }
|
|
exr = { version = "1.73", default-features = false, features = ["rayon"] }
|
|
|
|
[dev-dependencies]
|
|
proptest = { workspace = true }
|
|
image = { version = "0.25", default-features = false, features = ["png", "jpeg", "tiff"] }
|
|
sha2 = { version = "0.10", default-features = false, features = ["std"] }
|
|
|
|
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies]
|
|
jxl-oxide = { version = "=0.12.6", default-features = false, features = ["rayon"] }
|