[package]
edition = "2024"
rust-version = "1.93"
name = "zenbitmaps"
version = "0.1.4"
build = false
exclude = [
"tests/bmp-fixtures/",
"CLAUDE.md",
"CONTEXT-HANDOFF.md",
"FEEDBACK.md",
".claude/",
".superwork/",
".zenbench/",
"copter-report/",
".github/",
"Cross.toml",
"justfile",
"Cargo.toml.original.txt",
"api-feedback.md",
"fuzz/",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "PNM/PAM/PFM, BMP, farbfeld, QOI, TGA, and Radiance HDR image codec"
documentation = "https://docs.rs/zenbitmaps"
readme = "README.md"
keywords = [
"image",
"pnm",
"bmp",
"tga",
"qoi",
]
categories = ["multimedia::images"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/imazen/zenbitmaps"
[features]
all = [
"bmp",
"qoi",
"tga",
"hdr",
"simd",
"rgb",
"imgref",
]
bmp = []
default = []
hdr = []
imgref = [
"dep:imgref",
"rgb",
]
qoi = ["dep:rapid-qoi"]
rgb = ["dep:rgb"]
simd = [
"dep:garb",
"dep:archmage",
]
std = []
tga = []
zencodec = [
"dep:zencodec",
"dep:zenpixels",
"imgref",
"rgb",
]
[lib]
name = "zenbitmaps"
path = "src/lib.rs"
[[test]]
name = "corpus"
path = "tests/corpus.rs"
[[test]]
name = "fixtures_conformance"
path = "tests/fixtures_conformance.rs"
[[test]]
name = "hdr_conformance"
path = "tests/hdr_conformance.rs"
[[test]]
name = "rgb_imgref"
path = "tests/rgb_imgref.rs"
[[test]]
name = "roundtrip"
path = "tests/roundtrip.rs"
[[test]]
name = "tga_conformance"
path = "tests/tga_conformance.rs"
[[bench]]
name = "codecs"
path = "benches/codecs.rs"
harness = false
required-features = [
"bmp",
"qoi",
"tga",
"hdr",
]
[dependencies.archmage]
version = "0.9.15"
optional = true
default-features = false
[dependencies.enough]
version = "0.4.3"
[dependencies.garb]
version = "0.2.5"
optional = true
default-features = false
[dependencies.imgref]
version = "1.12"
optional = true
default-features = false
[dependencies.rapid-qoi]
version = "0.6.1"
features = ["alloc"]
optional = true
default-features = false
[dependencies.rgb]
version = "0.8"
features = ["as-bytes"]
optional = true
default-features = false
[dependencies.thiserror]
version = "2.0"
default-features = false
[dependencies.zencodec]
version = "0.1.13"
optional = true
[dependencies.zenpixels]
version = "0.2.2"
features = ["imgref"]
optional = true
default-features = false
[dev-dependencies.archmage]
version = "0.9.14"
features = ["std"]
[dev-dependencies.zenbench]
version = "0.1.4"
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.codec-corpus]
version = "1"