[package]
edition = "2024"
rust-version = "1.89"
name = "garb"
version = "0.2.7"
authors = ["Lilith River <lilith@imazen.io>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Dress your pixels for the occasion — SIMD-optimized pixel format conversions"
readme = "README.md"
keywords = [
"pixel",
"swizzle",
"bgra",
"rgba",
"simd",
]
categories = [
"graphics",
"multimedia::images",
"no-std",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/imazen/garb"
[features]
default = ["std"]
experimental = ["dep:paste"]
imgref = [
"dep:imgref",
"rgb",
]
rgb = ["dep:rgb"]
std = ["archmage/std"]
[lib]
name = "garb"
path = "src/lib.rs"
[[test]]
name = "readme_examples"
path = "tests/readme_examples.rs"
[[bench]]
name = "deinterleave"
path = "benches/deinterleave.rs"
harness = false
required-features = ["experimental"]
[[bench]]
name = "swizzle"
path = "benches/swizzle.rs"
harness = false
[dependencies.archmage]
version = "0.9.21"
features = ["macros"]
[dependencies.bytemuck]
version = "1.25.0"
features = [
"derive",
"extern_crate_alloc",
]
[dependencies.imgref]
version = "1.12.0"
optional = true
[dependencies.paste]
version = "1.0.15"
optional = true
[dependencies.rgb]
version = "0.8.53"
features = ["bytemuck"]
optional = true
[dev-dependencies.archmage]
version = "0.9.21"
features = ["testable_dispatch"]
[dev-dependencies.criterion]
version = "0.8.2"
features = [
"plotters",
"html_reports",
]
default-features = false
[dev-dependencies.imgref]
version = "1.12.0"
[dev-dependencies.rgb]
version = "0.8.53"
features = ["bytemuck"]
[dev-dependencies.zenbench]
version = "0.1.7"