[package]
name = "rgb"
version = "0.8.50"
authors = ["Kornel LesiĆski <kornel@geekhood.net>", "James Forster <james.forsterer@gmail.com>"]
include = ["src/**/*", "Cargo.toml", "README.md", "examples/*.rs", "LICENSE"]
description = "`struct RGB/RGBA/etc.` for sharing pixels between crates + convenience methods for color manipulation.\nAllows no-copy high-level interoperability. Also adds common convenience methods and implements standard Rust traits to make `RGB`/`RGBA` pixels and slices first-class Rust objects."
documentation = "https://docs.rs/rgb"
repository = "https://github.com/kornelski/rust-rgb"
homepage = "https://lib.rs/crates/rgb"
readme = "README.md"
keywords = ["rgb", "rgba", "bgra", "pixel", "color"]
license = "MIT"
categories = ["graphics", "rust-patterns", "multimedia::images"]
edition = "2021"
rust-version = "1.63"
[features]
default = ["as-bytes", "argb", "grb"]
as-bytes = ["bytemuck"]
bytemuck = ["dep:bytemuck"]
argb = []
grb = []
checked_fns = []
serde = ["dep:serde"]
defmt-03 = ["dep:defmt"]
unstable-experimental = []
[badges]
maintenance = { status = "actively-developed" }
[dependencies]
serde = { version = "1.0.200", optional = true, default-features = false, features = ["derive"] }
bytemuck = { version = "1.16", optional = true }
defmt = { version = "0.3.8", optional = true }
[dev-dependencies]
serde_json = "1.0.100"
[[example]]
name = "serde"
required-features = ["serde"]
[[example]]
name = "example"
required-features = ["as-bytes"]
[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
features = ["as-bytes", "serde"]
rustdoc-args = ["--generate-link-to-definition"]